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(office): spawn point in the middle of both floors
rubenluetke10-beep2f24e0eaa253
diff --git a/docs/agent-society/office-map.md b/docs/agent-society/office-map.mdindex 10bcac5889..7d34ecc377 100644--- a/docs/agent-society/office-map.md+++ b/docs/agent-society/office-map.md@@ -61,6 +61,10 @@ target runs WebGL.- **Middle:** departments = provider families (`providerLabel`; empty meansJarvis' own brain), two columns, at least four (spare ones are "Open space"),at most six (the rest fold into "Other"). Benches of back-to-back desks.+- **Spawn point (both floors):** a round pad with a terminal on the crossing of+ the centre aisle and the cross aisle nearest the floor's middle, the one plaza+ every route passes. `layout.arrival` (south of the terminal) is where anyone+ new to the floor appears.- **South strip:** an open reception/lobby with the elevator, the reception deskand the agent board; a walled break room with couches, coffee bar, watercooler, arcade and beanbags.@@ -79,8 +83,8 @@ target runs WebGL.cooler, team table, strolling or chatting at a busy colleague's desk. Spots arereserved so nobody sits on anybody. All of it is client-side, deterministicper agent, costs no tokens and never starts or stops work. Reduced motion- places agents without walking. Agents created while the office is open arrive- by the elevator.+ places agents without walking. Agents created while the office is open appear+ on the spawn pad in a column of light and walk to their desk.- **The person's character** (`OfficePlayer.tsx`, `playerProfile.ts`): WASD /arrows (camera-relative, Shift runs) or click the floor to walk; E interactswith the nearest agent or checkpoint. Name and body are chosen in the@@ -89,8 +93,9 @@ target runs WebGL.character; zoom out and it is the overview. Everything stays clickable fromafar, so walking is optional. A right-drag pan or a fly-to stops following;moving resumes it.-- **Checkpoints** (`OfficePanels.tsx`): reception → create an agent (existing- dialog); agent board → list, show on map, open, agent management; team room →+- **Checkpoints** (`OfficePanels.tsx`): spawn point → spawn a new Jarvis agent+ (existing create dialog; a host without one, like the IDE side panel, gets the+ office's own copy); reception → help, and create an agent too; agent board → list, show on map, open, agent management; team room →pick agents and create a team (existing chat groups), gather teams at thetable; wardrobe → your look; lead office → talk to the lead; break room → callfree agents for a coffee break (visual only).@@ -136,6 +141,13 @@ the floor plan differ.department per IDE workspace; no lead office and no wardrobe (a quiet zonetakes their place, built from existing furniture); reception with theelevator and the break room stay. The agents office layout is unchanged.+- **Spawn point** (2026-09-30): the coding floor's spawn point replaces the old+ lobby kiosk. Its panel is Mission Control's launcher (CLI, workspace, how+ many, optional first task, through the IDE's own `POST /terminals`); every new+ pane appears on the pad and walks to its desk. `SpawnPoint.tsx` builds pad,+ terminal and fittings in each floor's own materials (oak, bronze and a mint+ glow with the brass ghost downstairs; walnut, brass and amber with a brass+ `>_` upstairs); two gyroscope rings turn round the floor token.- **Gigi follows**: on the coding floor Jarvis (Gigi) flies in "follow" mode,hovering beside and behind the person's head with a smoothed lag and neverinside a wall, including in the elevator. In the agents office Gigi keeps@@ -227,7 +239,7 @@ contemporary kit with tone-on-tone patterns. Seat height, desk height, monitorscreen position and every footprint are unchanged, so poses, live screens andnavigation work as before. Still in the earlier style and waiting on themaintainer's review of this reference before they follow: the lead suite, the-reception desk and kiosk, the team room table and chairs, the lockers and+reception desk, the team room table and chairs, the lockers andmirror, the coffee bar, the water cooler and the arcade.## 6. Plandiff --git a/jarvis/ui/web/frontend/src/components/society/office/CheckpointMarker.tsx b/jarvis/ui/web/frontend/src/components/society/office/CheckpointMarker.tsxindex 9c2a033d2a..a8f9a72590 100644--- a/jarvis/ui/web/frontend/src/components/society/office/CheckpointMarker.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/CheckpointMarker.tsx@@ -17,10 +17,12 @@ import { cachedCanvasTexture } from "./canvasMaterials";import type { Checkpoint, CheckpointKind } from "./officeLayout";import { CHECKPOINT_GOLD } from "./officePalette";-export type CheckpointIcon = "plus" | "list" | "team" | "shirt" | "star" | "coffee" | "updown" | "target";+export type CheckpointIcon = "spawn" | "plus" | "list" | "team" | "shirt" | "star" | "coffee" | "updown" | "target";/** Stroke-only icons in a 24 × 24 box (round caps and joins). */export const CHECKPOINT_ICON_PATHS: Record<CheckpointIcon, string> = {+ // The spawn point: a plus between two arcs, a portal opening.+ spawn: "M12 8.5v7M8.5 12h7M5.2 7.5A8 8 0 0 1 18.8 7.5M18.8 16.5A8 8 0 0 1 5.2 16.5",plus: "M12 5v14M5 12h14",list: "M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01",team: "M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM3 20c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5M16.5 11a2.5 2.5 0 1 0 0-5M18 14.5c2 .6 3.5 2.4 3.5 5",@@ -35,7 +37,7 @@ export const CHECKPOINT_ICON_PATHS: Record<CheckpointIcon, string> = {/** The icon each checkpoint wears, on its floor token and in the reception's list of places. */export const CHECKPOINT_ICON: Record<CheckpointKind, CheckpointIcon> = {- create: "plus", manage: "list", team: "team", wardrobe: "shirt", lead: "star", break: "coffee", elevator: "updown", mission: "target",+ spawn: "spawn", launch: "spawn", create: "plus", manage: "list", team: "team", wardrobe: "shirt", lead: "star", break: "coffee", elevator: "updown", mission: "target",};const TOKEN_RADIUS = 0.36;diff --git a/jarvis/ui/web/frontend/src/components/society/office/LobbyDecor.tsx b/jarvis/ui/web/frontend/src/components/society/office/LobbyDecor.tsxindex 021ba01b89..5d6bfe07aa 100644--- a/jarvis/ui/web/frontend/src/components/society/office/LobbyDecor.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/LobbyDecor.tsx@@ -112,7 +112,7 @@ function ghostShape(): Shape {}/** Extruded ghost, 1 unit tall and 0.06 deep (plus a soft bevel), its back face on z = 0. */-const GHOST_GEOMETRY = (() => {+export const GHOST_GEOMETRY = (() => {const geometry = new ExtrudeGeometry(ghostShape(), {depth: 0.06, bevelEnabled: true, bevelThickness: 0.01, bevelSize: 0.008, bevelSegments: 2, curveSegments: 18,});@@ -132,7 +132,8 @@ function traceGhost(ctx: Ctx, cx: number, top: number, height: number): void {ctx.closePath();}-function drawGhost(ctx: Ctx, cx: number, top: number, height: number, body: string, eyes: string): void {+/** The ghost, `height` px tall with its top at `top`, centred on `cx`: a filled body with filled eyes. */+export function drawGhost(ctx: Ctx, cx: number, top: number, height: number, body: string, eyes: string): void {traceGhost(ctx, cx, top, height);ctx.fillStyle = body;ctx.fill();diff --git a/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx b/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsxindex 73c116c1f4..2506fb2221 100644--- a/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx@@ -64,7 +64,8 @@ function errorText(err: unknown): string {return err instanceof Error ? err.message : String(err);}-function StartAgent() {+/** Start coding agents: CLI, workspace, how many and an optional first task. Also the coding floor's spawn point. */+export function StartAgent() {const t = useT();const [workspaces, setWorkspaces] = useState<WorkspaceCard[] | null>(null);const [agents, setAgents] = useState<AgentStatus[] | null>(null);diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeFullMap.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeFullMap.tsxindex 5b7b9f30c5..8a49b513f3 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeFullMap.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeFullMap.tsx@@ -104,6 +104,8 @@ function FullMapDialog({ onClose, layout, agents, selectedId }: Omit<OfficeFullM);const checkpointLabels: Record<CheckpointKind, string> = {+ spawn: t("society.office.cp_spawn"),+ launch: t("society.office.cp_launch"),create: t("society.office.cp_create"),manage: t("society.office.cp_manage"),team: t("society.office.cp_team"),diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeMinimap.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeMinimap.tsxindex 686b938f96..2c3f0a0a3d 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeMinimap.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeMinimap.tsx@@ -211,6 +211,8 @@ export function OfficeMinimap({ layout, agents, selectedId, onOpenMap }: OfficeM};const checkpointLabels: Record<CheckpointKind, string> = {+ spawn: t("society.office.cp_spawn"),+ launch: t("society.office.cp_launch"),create: t("society.office.cp_create"),manage: t("society.office.cp_manage"),team: t("society.office.cp_team"),diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficePanels.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficePanels.tsxindex d739991c82..46b6e3d30a 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficePanels.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficePanels.tsx@@ -1,8 +1,8 @@/*** DOM panels for what the person selects in the office: an agent (an IDE* session on the coding floor has its own PaneCommandPanel), or one of the- * checkpoints (reception, agent board, team room, wardrobe, lead office, break- * room, elevator, Mission Control). Every action here uses an existing app path — create dialog,+ * checkpoints (the spawn point, reception, agent board, team room, wardrobe,+ * lead office, break room, elevator, Mission Control). Every action here uses an existing app path — create dialog,* agent card/chat, chat groups — the office adds no new backend contract.*/import { useEffect, useId, useRef, useState } from "react";@@ -17,6 +17,7 @@ import { WardrobePanel } from "./WardrobePanel";import { ReceptionPanel } from "./ReceptionPanel";import { TeamRoomPanel } from "./TeamRoomPanel";import { MissionControlPanel } from "./MissionControlPanel";+import { LaunchPanel, SpawnPanel } from "./SpawnPanel";import { CHECKPOINT_ICON, IconSvg, type CheckpointIcon } from "./CheckpointMarker";@@ -153,6 +154,8 @@ export function CheckpointPanel({ id, floor = "agents", agents, layout, sample,const t = useT();return (<PanelShell title={t(`society.office.cp_${id}`)} subtitle={t(`society.office.cp_${id}_hint`)} icon={CHECKPOINT_ICON[id]} kind={id} onClose={onClose}>+ {id === "spawn" && <SpawnPanel agents={agents} onCreateAgent={actions.onCreateAgent} />}+ {id === "launch" && <LaunchPanel />}{id === "create" && <ReceptionPanel floor={floor} layout={layout} onCreateAgent={actions.onCreateAgent} />}{id === "manage" && <ManagePanel agents={agents} actions={actions} />}{id === "team" && <TeamRoomPanel agents={agents} layout={layout} sample={sample} actions={actions} />}diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeProps.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeProps.tsxindex 3a2aa295e4..4c8f6f0448 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeProps.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeProps.tsx@@ -18,6 +18,7 @@ import { TEAM_RENDERERS } from "./TeamRoomDecor";import { BREAK_RENDERERS } from "./BreakLounge";import { WARDROBE_RENDERERS } from "./WardrobeRoom";import { LOBBY_RENDERERS } from "./LobbyDecor";+import { SPAWN_RENDERERS } from "./SpawnPoint";import { MeetingChair } from "./OfficeChairs";import { Bookshelf, Box, Couch, GEO, MAT, matte, Plant, Rounded, Rug } from "./OfficeFurniture";import { FURNITURE_SIZE, type Furniture, type FurnitureKind } from "./officeLayout";@@ -35,39 +36,6 @@ function roundRect(ctx: CanvasRenderingContext2D, x: number, y: number, w: numbectx.closePath();}-/** Kiosk screen: a list of agents with a gold header and an add button. */-function drawKioskList(ctx: CanvasRenderingContext2D, w: number, h: number): void {- const grad = ctx.createLinearGradient(0, 0, 0, h);- grad.addColorStop(0, "#22345a");- grad.addColorStop(1, "#16223b");- ctx.fillStyle = grad;- ctx.fillRect(0, 0, w, h);- ctx.fillStyle = "#f5b83d";- ctx.fillRect(0, 0, w, 56);- ctx.fillStyle = "#2a1d0a";- ctx.fillRect(24, 22, 150, 12);- const dots = ["#4ade80", "#fbbf24", "#e8ecf2", "#4ade80"];- dots.forEach((colour, i) => {- const y = 92 + i * 62;- ctx.fillStyle = "rgba(255,255,255,0.08)";- roundRect(ctx, 20, y - 24, w - 40, 48, 10);- ctx.fill();- ctx.fillStyle = colour;- ctx.beginPath();- ctx.arc(48, y, 10, 0, Math.PI * 2);- ctx.fill();- ctx.fillStyle = "rgba(255,255,255,0.85)";- ctx.fillRect(72, y - 6, 180 + ((i * 53) % 120), 12);- });- ctx.fillStyle = "#f5b83d";- ctx.beginPath();- ctx.arc(w - 50, h - 42, 24, 0, Math.PI * 2);- ctx.fill();- ctx.fillStyle = "#2a1d0a";- ctx.fillRect(w - 62, h - 45, 24, 6);- ctx.fillRect(w - 53, h - 54, 6, 24);-}-/*** Reception's help display: the map's main keys as key caps, each over a gold* pictogram of what it does (walk, run, use, map, help). Shapes only, no words,@@ -294,8 +262,7 @@ const PM = {arcadeButtons: P.arcadeButtons.map((c) => matte(c, { emissive: c, emissiveIntensity: 0.35 })),bell: matte(P.bell, { roughness: 0.35, metalness: 0.3 }),boardFrame: matte(P.boardFrame),- kioskBody: matte(P.kioskBody),- kioskHead: matte(P.kioskHead, { roughness: 0.5 }),+ displayFrame: matte(P.displayFrame, { roughness: 0.5 }),paper: matte(P.paper),rugInner: matte(P.rugInner),gold: matte("#f5b83d", { emissive: "#f5b83d", emissiveIntensity: 0.6 }),@@ -304,7 +271,6 @@ const PM = {};const lazy = {- kiosk: () => canvasMaterial("prop:kiosk", 512, 360, drawKioskList, { glow: 0.85, fallback: "#1b2a44", roughness: 0.4 }),receptionHelp: () => canvasMaterial("prop:receptionHelp", 512, 192, drawReceptionHelp, { glow: 0.85, fallback: "#1a2742", roughness: 0.4 }),infoSign: () => canvasMaterial("prop:infoSign", 256, 256, drawInfoSign, { glow: 0.7, fallback: "#f5b83d", roughness: 0.4 }),arcade: () => canvasMaterial("prop:arcade", 256, 200, drawArcade, { glow: 1, fallback: "#07060f", roughness: 0.4 }),@@ -382,7 +348,7 @@ function ReceptionDesk() {<Box size={[2.8, 0.05, 0.1]} position={[0, 2.125, -0.405]} material={MAT.woodDark} /><Box size={[2.7, 0.018, 0.02]} position={[0, 2.09, -0.345]} material={PM.gold} cast={false} />{/* Help display on the wall, facing the visitors. */}- <Rounded size={[1.56, 0.64, 0.05]} radius={0.03} position={[0, 1.62, -0.34]} material={PM.kioskHead} />+ <Rounded size={[1.56, 0.64, 0.05]} radius={0.03} position={[0, 1.62, -0.34]} material={PM.displayFrame} /><Panel size={[1.46, 0.548]} position={[0, 1.62, -0.3135]} material={lazy.receptionHelp()} /><Box size={[0.6, 0.02, 0.012]} position={[0, 1.95, -0.32]} material={PM.gold} cast={false} />@@ -410,7 +376,7 @@ function ReceptionDesk() {<Cyl radius={0.07} height={0.012} position={[0.95, 1.036, 0.26]} material={MAT.monitor} /><mesh geometry={PGEO.dome} material={PM.bell} position={[0.95, 1.042, 0.26]} scale={0.055} castShadow /><mesh geometry={PGEO.sphere} material={PM.bell} position={[0.95, 1.1, 0.26]} scale={0.012} />- <Box size={[0.34, 0.02, 0.12]} position={[-0.9, 1.04, 0.24]} material={PM.kioskHead} />+ <Box size={[0.34, 0.02, 0.12]} position={[-0.9, 1.04, 0.24]} material={PM.displayFrame} />{P.lockers.slice(0, 3).map((colour, i) => (<group key={colour} position={[-1.01 + i * 0.11, 1.11, 0.24]} rotation={[-0.2, 0, 0]}><Box size={[0.085, 0.13, 0.01]} position={[0, 0, 0]} material={PM.brochures[i]!} />@@ -423,21 +389,6 @@ function ReceptionDesk() {);}-/** Standing touch terminal; the screen (a list of agents) faces +z, tilted slightly up. */-function Kiosk() {- return (- <group>- <Rounded size={[0.6, 0.05, 0.42]} radius={0.02} position={[0, 0.025, 0]} material={PM.kioskBody} />- <Rounded size={[0.24, 1.1, 0.18]} radius={0.05} position={[0, 0.6, -0.04]} material={PM.kioskBody} />- <group position={[0, 1.43, 0]} rotation={[-0.12, 0, 0]}>- <Rounded size={[0.9, 0.66, 0.1]} radius={0.04} position={[0, 0, 0]} material={PM.kioskHead} />- <Panel size={[0.8, 0.56]} position={[0, 0, 0.051]} material={lazy.kiosk()} />- <Box size={[0.5, 0.03, 0.04]} position={[0, 0.345, 0]} material={PM.gold} cast={false} />- </group>- </group>- );-}-/** A row of four coloured lockers, doors facing +z. */function Lockers() {return (@@ -591,7 +542,6 @@ const COUCH_FIT_X = FURNITURE_SIZE.couch.w / 2.36;/** Every furniture kind maps to exactly one renderer (the Record type keeps this exhaustive). */export const PROP_RENDERERS: Record<FurnitureKind, (props: { item: Furniture }) => JSX.Element> = {receptionDesk: () => <ReceptionDesk />,- kiosk: () => <Kiosk />,lockers: () => <Lockers />,mirror: () => <Mirror />,coffeeBar: () => <CoffeeBar />,@@ -613,6 +563,7 @@ export const PROP_RENDERERS: Record<FurnitureKind, (props: { item: Furniture })...BREAK_RENDERERS,...WARDROBE_RENDERERS,...LOBBY_RENDERERS,+ ...SPAWN_RENDERERS,};/** One furniture item, placed at (x, 0, z) and turned by `rotationY` (0 = front faces +z). */diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeScene.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeScene.tsxindex c7bbfbb961..f31540d6e7 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeScene.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeScene.tsx@@ -31,6 +31,7 @@ import { TeamRoomFittings } from "./TeamRoomDecor";import { BreakLoungeFittings } from "./BreakLounge";import { WardrobeFittings } from "./WardrobeRoom";import { LobbyFittings } from "./LobbyDecor";+import { SpawnFittings } from "./SpawnPoint";import { RoomFloors, RoomSign, RoomWalls } from "./OfficeRooms";import { CHECKPOINT_ICON, CheckpointMarker } from "./CheckpointMarker";import { ElevatorCallButton } from "./ElevatorCallButton";@@ -123,6 +124,7 @@ export function OfficeScene({ floor, occupants, ready, layout, grid, walkers, agconst board = layout.furniture.find((f) => f.kind === "teamBoard");const wardrobeRug = layout.furniture.find((f) => f.kind === "roundRug" && f.room === "wardrobe");const lobbyLamp = layout.furniture.find((f) => f.kind === "lobbyLamp");+ const spawnTerminal = layout.furniture.find((f) => f.kind === "spawnTerminal");const onFloorClick = (event: ThreeEvent<MouseEvent>) => {// A drag that ends on the floor rotated the camera; only a real click walks.if (event.delta > 6) return;@@ -167,6 +169,7 @@ export function OfficeScene({ floor, occupants, ready, layout, grid, walkers, ag{breakRoom && <BreakLoungeFittings room={breakRoom} furniture={layout.furniture} />}{wardrobeRug && <WardrobeFittings rug={wardrobeRug} />}{lobbyLamp && <LobbyFittings lamp={lobbyLamp} />}+ {spawnTerminal && <SpawnFittings terminal={spawnTerminal} arrival={layout.arrival} floor={floor} newcomers={newcomers} animate={awake && !reduced} />}{/* At the elevator its call button takes over from the floating token, which would hide it. */}{layout.checkpoints.filter((cp) => cp.id !== "elevator" || !atLift).map((cp) => (<CheckpointMarker key={cp.id} checkpoint={cp} label={t(`society.office.cp_${cp.id}`)} icon={CHECKPOINT_ICON[cp.id]}diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsxindex a01dcb1865..05fc7b6c17 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx@@ -6,7 +6,7 @@* up is the coding floor: a figure per IDE coding session, its terminal live* on the monitor, and Gigi flying along with the person.*/-import { Component, Suspense, useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from "react";+import { Component, lazy, Suspense, useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from "react";import { useQueryClient } from "@tanstack/react-query";import { advance, Canvas } from "@react-three/fiber";import { useReducedMotion } from "framer-motion";@@ -46,6 +46,9 @@ import { OfficeMinimap } from "./OfficeMinimap";import { OfficeCompass } from "./OfficeCompass";import { OfficeFullMap } from "./OfficeFullMap";+// Only loaded when a host without its own create dialog (the IDE's side panel) spawns an agent.+const CreateAgentDialog = lazy(() => import("../create/CreateAgentDialog").then((m) => ({ default: m.CreateAgentDialog })));+// Dev-only handles for runtime checks of walking and panels.if (import.meta.env.DEV && typeof window !== "undefined") Object.assign(window, { __officeStore: useOfficeStore, __officePlayer: player, __officeAgents: agentPositions, __officeSeated: seatedAtDesk,// Steps the scene without requestAnimationFrame (hidden test tabs): __officeStep(frames, dtMs).@@ -99,9 +102,10 @@ function useRosterRefresh(awake: boolean) {}/**- * Agents created while the office is open arrive by the elevator; everyone- * else is simply there. Each floor keeps its own memory, so riding up or down- * never makes a whole floor "arrive".+ * Agents created while the office is open appear on the spawn pad in the+ * middle of the floor and walk to their desk; everyone else is simply there.+ * Each floor keeps its own memory, so riding up or down never makes a whole+ * floor "arrive".*/function useNewcomers(active: SocietyAgent[], floor: OfficeFloor): ReadonlySet<string> {const [newcomers, setNewcomers] = useState<{ floor: OfficeFloor; ids: ReadonlySet<string> }>({ floor, ids: new Set() });@@ -163,7 +167,7 @@ export function OfficeStage({ onOpenLedger, onSelectAgent, onCreateAgent, onOpenconst walkers = useMemo<WalkerContext>(() => {const desks = allDesks(layout);return {- layout, grid, book, spawn: layout.spawn,+ layout, grid, book, spawn: layout.arrival,colleagues: () => desks.filter((d) => d.agentId && agentsRef.current.get(d.agentId)?.state === "working").map((d) => ({ agentId: d.agentId as string, desk: d })),};@@ -271,10 +275,19 @@ export function OfficeStage({ onOpenLedger, onSelectAgent, onCreateAgent, onOpenif (coding && !compact) useEventStore.getState().setActiveSection("agentic-ide");else onOpenLedger?.();}, [coding, compact, onOpenLedger]);+ // Spawning a Jarvis agent (the spawn point, reception): the host's create dialog, or the office's own+ // where the host has none. The panel closes and the camera turns to the pad, where the agent appears.+ const [creating, setCreating] = useState(false);+ const createAgent = useCallback(() => {+ const store = useOfficeStore.getState();+ store.select(null);+ if (Math.hypot(player.x - layout.arrival.x, player.z - layout.arrival.z) > 4) store.focusOn(layout.arrival);+ if (onCreateAgent) onCreateAgent(); else setCreating(true);+ }, [onCreateAgent, layout]);const actions = useMemo<OfficeActions>(() => ({onOpenAgent: openAgent,- onOpenLedger: openList, onCreateAgent, onOpenGroup,- }), [openAgent, openList, onCreateAgent, onOpenGroup]);+ onOpenLedger: openList, onCreateAgent: createAgent, onOpenGroup,+ }), [openAgent, openList, createAgent, onOpenGroup]);// Escape closes an open panel before it can leave the map.useEffect(() => {@@ -333,7 +346,8 @@ export function OfficeStage({ onOpenLedger, onSelectAgent, onCreateAgent, onOpenconst playerName = profile.name.trim() || t("society.office.you");const showHintBar = useOfficeSettings((s) => s.showHintBar);const receptionOpen = selection?.kind === "checkpoint" && selection.id === "create";- const missionOpen = selection?.kind === "checkpoint" && selection.id === "mission";+ // Mission Control and the spawn point carry forms: they get the wide slot, like reception.+ const widePanel = selection?.kind === "checkpoint" && (selection.id === "mission" || selection.id === "spawn" || selection.id === "launch");// A full-view office draws no more pixels than a side-panel one would afford.const dpr = useDprBudget(hostRef);@@ -397,7 +411,7 @@ export function OfficeStage({ onOpenLedger, onSelectAgent, onCreateAgent, onOpen<PaneCommandPanel occupant={selectedPane} compact={compact} onOpen={() => openPaneSession(selectedPane.pane)} onClose={() => select(null)} />)}{selection && selection.kind !== "arcade" && !(selection.kind === "agent" && selectedPane) && (- <div className="office-panel-slot" data-wide={receptionOpen || missionOpen || undefined}>+ <div className="office-panel-slot" data-wide={receptionOpen || widePanel || undefined}>{selection.kind === "agent" && selectedAgent && <AgentPanel agent={selectedAgent} actions={actions} onClose={() => select(null)} />}{selection.kind === "checkpoint" && (<CheckpointPanel id={selection.id} floor={floor} agents={active} layout={layout} sample={!coding && (roster.data?.sample ?? false)}@@ -425,6 +439,11 @@ 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>}+ {creating && (+ <Suspense fallback={null}>+ <CreateAgentDialog open onClose={() => setCreating(false)} onCreated={() => setCreating(false)} />+ </Suspense>+ )}</section>);}diff --git a/jarvis/ui/web/frontend/src/components/society/office/ReceptionPanel.tsx b/jarvis/ui/web/frontend/src/components/society/office/ReceptionPanel.tsxindex 6318148355..02c8975552 100644--- a/jarvis/ui/web/frontend/src/components/society/office/ReceptionPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/ReceptionPanel.tsx@@ -191,7 +191,7 @@ function WelcomeTab({ floor, layout, onCreateAgent }: { floor: OfficeFloor; layoreturn (<li key={cp.id}><button type="button" className="office-rx-place" aria-label={t("society.office.guide.place_walk_label").replace("{0}", name)}- onClick={() => walk(cp.x, cp.z)}>+ onClick={() => walk((cp.approach ?? cp).x, (cp.approach ?? cp).z)}><span className="office-rx-icon"><IconSvg icon={CHECKPOINT_ICON[cp.id]} /></span><span className="office-rx-place-text"><strong>{name}</strong>diff --git a/jarvis/ui/web/frontend/src/components/society/office/SpawnPanel.tsx b/jarvis/ui/web/frontend/src/components/society/office/SpawnPanel.tsxnew file mode 100644index 0000000000..1d2d8f6381--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/office/SpawnPanel.tsx@@ -0,0 +1,59 @@+/**+ * The spawn point's panel. On the agents floor it spawns a new Jarvis agent+ * through the app's create dialog; on the coding floor it starts new coding+ * agents in the Agentic IDE with Mission Control's launcher. Whoever is new+ * then appears on the spawn pad and walks to a free desk. Like every office+ * panel it uses existing app paths only.+ */+import { useT } from "@/i18n";+import type { SocietyAgent } from "../data";+import { IconSvg } from "./CheckpointMarker";+import { StartAgent } from "./MissionControlPanel";+import "./spawnPanel.css";++const STEPS = ["job", "brain", "arrive"] as const;++function Hero({ title, body }: { title: string; body: string }) {+ return (+ <div className="office-spawn-hero">+ <span className="office-spawn-mark" aria-hidden><IconSvg icon="spawn" /></span>+ <div>+ <strong>{title}</strong>+ <p>{body}</p>+ </div>+ </div>+ );+}++/** Agents floor: what a new Jarvis agent needs, and the button that opens the create dialog. */+export function SpawnPanel({ agents, onCreateAgent }: { agents: readonly SocietyAgent[]; onCreateAgent?: () => void }) {+ const t = useT();+ const working = agents.filter((a) => a.state === "working").length;+ return (+ <div className="office-spawn">+ <Hero title={t("society.office.spawn_title")} body={t("society.office.spawn_body")} />+ <ol className="office-spawn-steps">+ {STEPS.map((step, i) => (+ <li key={step}><span aria-hidden>{i + 1}</span>{t(`society.office.spawn_step_${step}`)}</li>+ ))}+ </ol>+ <button type="button" className="office-spawn-go" disabled={!onCreateAgent} onClick={() => onCreateAgent?.()}>+ <IconSvg icon="plus" />{t("society.office.spawn_action")}+ </button>+ <p className="office-spawn-foot" role="status">+ {t("society.office.spawn_team").replace("{0}", String(agents.length)).replace("{1}", String(working))}+ </p>+ </div>+ );+}++/** Coding floor: Mission Control's launcher, right at the spawn point. */+export function LaunchPanel() {+ const t = useT();+ return (+ <div className="office-spawn">+ <Hero title={t("society.office.launch_title")} body={t("society.office.launch_body")} />+ <div className="office-mc"><StartAgent /></div>+ </div>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/society/office/SpawnPoint.tsx b/jarvis/ui/web/frontend/src/components/society/office/SpawnPoint.tsxnew file mode 100644index 0000000000..da95ea93b1--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/office/SpawnPoint.tsx@@ -0,0 +1,623 @@+/**+ * The spawn point in the middle of both office floors: a round pad set into+ * the aisle crossing and, on it, a portal-shaped terminal — two pillars, a+ * lintel with the floor's crest, a screen on each side, a console with a+ * glowing button each side and an energy core under it. It spawns Jarvis+ * agents on the agents floor and coding agents on the coding floor; everyone+ * new to a floor appears on the pad in a column of light.+ *+ * Each floor dresses it in its own materials: pale oak, bronze and a mint+ * glow with the brass ghost downstairs; walnut, brass and amber with a brass+ * prompt glyph upstairs. Same rules as OfficeProps: every piece is built in+ * local space centred on the origin, front facing +z, inside its+ * `FURNITURE_SIZE` box; materials and canvas faces are made once per floor+ * and shared. The moving parts (the rings round the floor token, the glow+ * pulse and the arrival beam) live in `SpawnFittings`.+ */+import { useEffect, useRef } from "react";+import { useFrame } from "@react-three/fiber";+import {+ AdditiveBlending, CylinderGeometry, DoubleSide, MeshBasicMaterial, MeshStandardMaterial, RingGeometry, TorusGeometry,+ type BufferGeometry, type Group, type Mesh,+} from "three";+import { cachedCanvasTexture, canvasMaterial } from "./canvasMaterials";+import { Box, GEO, matte, Rounded } from "./OfficeFurniture";+import { drawGhost, GHOST_GEOMETRY } from "./LobbyDecor";+import { FURNITURE_SIZE, SPAWN, type Furniture, type FurnitureKind, type Point } from "./officeLayout";+import { useOfficeStore, type OfficeFloor } from "./officeStore";++type Vec3 = [number, number, number];+type Ctx = CanvasRenderingContext2D;++// ---------------------------------------------------------------------------+// The two looks+// ---------------------------------------------------------------------------++interface SpawnLook {+ /** Pillars, lintel and console; the plinth; the metal trims. */+ body: string; plinth: string; metal: string;+ /** The screen bezel, and the light every strip, button, core and ring glows in. */+ bezel: string; glow: string;+ /** Screen: background top and bottom, the text, the accent and its deep tone. */+ screenTop: string; screenBottom: string; text: string; accent: string; accentDeep: string;+ /** Pad: stone, its speckles, the outer metal band and the accent band. */+ pad: string; speck: readonly string[]; padEdge: string; padBand: string;+}++/** Downstairs the agents' Scandinavian oak, sage and bronze; upstairs the coding floor's walnut, plum and amber. */+export const SPAWN_LOOKS: Record<OfficeFloor, SpawnLook> = {+ agents: {+ body: "#dcc49c", plinth: "#a88660", metal: "#c7a15e", bezel: "#23262b", glow: "#b8f0cf",+ screenTop: "#22302a", screenBottom: "#111816", text: "#f1ebe1", accent: "#9fbf9a", accentDeep: "#16201b",+ pad: "#e9e3d8", speck: ["#ddd5c7", "#f3efe7", "#cfc6b6"], padEdge: "#a8865a", padBand: "#9fae93",+ },+ coding: {+ body: "#5d3d28", plinth: "#2e1d13", metal: "#d8ae52", bezel: "#1d1b1a", glow: "#ffc27a",+ screenTop: "#271b40", screenBottom: "#0f0a1d", text: "#fff1de", accent: "#f3b16b", accentDeep: "#241a3b",+ pad: "#2e2638", speck: ["#3b3246", "#251f2e", "#c9a24a"], padEdge: "#c9a24a", padBand: "#f3b16b",+ },+};++interface SpawnMaterials {+ body: MeshStandardMaterial; plinth: MeshStandardMaterial; metal: MeshStandardMaterial; bezel: MeshStandardMaterial;+ /** Self-lit, so it reads as light in any scene lighting; SpawnFittings pulses it. */+ glow: MeshStandardMaterial;+ glass: MeshStandardMaterial;+}++const materialCache = new Map<OfficeFloor, SpawnMaterials>();++export function spawnMaterials(floor: OfficeFloor): SpawnMaterials {+ let set = materialCache.get(floor);+ if (!set) {+ const look = SPAWN_LOOKS[floor];+ set = {+ body: matte(look.body, { roughness: floor === "coding" ? 0.5 : 0.6 }),+ plinth: matte(look.plinth, { roughness: 0.55 }),+ metal: matte(look.metal, { roughness: 0.3, metalness: 0.7 }),+ bezel: matte(look.bezel, { roughness: 0.35, metalness: 0.15 }),+ glow: new MeshStandardMaterial({ color: look.glow, emissive: look.glow, emissiveIntensity: 1.25, toneMapped: false }),+ glass: new MeshStandardMaterial({ color: "#eef6f8", transparent: true, opacity: 0.22, roughness: 0.05, depthWrite: false }),+ };+ materialCache.set(floor, set);+ }+ return set;+}++// ---------------------------------------------------------------------------+// Canvas faces+// ---------------------------------------------------------------------------++function roundRect(ctx: Ctx, x: number, y: number, w: number, h: number, r: number): void {+ ctx.beginPath();+ ctx.moveTo(x + r, y);+ ctx.arcTo(x + w, y, x + w, y + h, r);+ ctx.arcTo(x + w, y + h, x, y + h, r);+ ctx.arcTo(x, y + h, x, y, r);+ ctx.arcTo(x, y, x + w, y, r);+ ctx.closePath();+}++/** Letter spacing where the canvas supports it (Chromium does; older engines just ignore it). */+function spaced(ctx: Ctx, px: number): void {+ (ctx as Ctx & { letterSpacing?: string }).letterSpacing = `${px}px`;+}++/** A thick rounded plus, `size` px across, centred on (cx, cy). */+function plus(ctx: Ctx, cx: number, cy: number, size: number, colour: string): void {+ const bar = size * 0.24;+ ctx.fillStyle = colour;+ roundRect(ctx, cx - size / 2, cy - bar / 2, size, bar, bar / 2);+ ctx.fill();+ roundRect(ctx, cx - bar / 2, cy - size / 2, bar, size, bar / 2);+ ctx.fill();+}++const FONT = "Inter, 'Segoe UI', system-ui, sans-serif";+const MONO = "'JetBrains Mono', 'Cascadia Code', Consolas, monospace";++/** The screen's header: the floor's mark, SPAWN and a "ready" light on the right. */+function screenHeader(ctx: Ctx, w: number, look: SpawnLook, mark: (x: number, y: number) => void): void {+ ctx.fillStyle = "rgba(255,255,255,0.05)";+ ctx.fillRect(0, 0, w, 96);+ ctx.fillStyle = look.accent;+ ctx.fillRect(0, 96, w, 4);+ mark(44, 48);+ ctx.textBaseline = "middle";+ ctx.textAlign = "left";+ ctx.fillStyle = look.text;+ spaced(ctx, 12);+ ctx.font = `800 44px ${FONT}`;+ ctx.fillText("SPAWN", 112, 50);+ spaced(ctx, 3);+ ctx.font = `700 22px ${FONT}`;+ ctx.textAlign = "right";+ ctx.fillStyle = "rgba(255,255,255,0.72)";+ ctx.fillText("READY", w - 44, 50);+ ctx.fillStyle = "#4ade80";+ ctx.beginPath(); ctx.arc(w - 146, 49, 9, 0, Math.PI * 2); ctx.fill();+ ctx.fillStyle = "rgba(74,222,128,0.25)";+ ctx.beginPath(); ctx.arc(w - 146, 49, 16, 0, Math.PI * 2); ctx.fill();+ spaced(ctx, 0);+ ctx.textAlign = "left";+}++/** The big "spawn" button on the left half: an accent tile with a plus and its caption. */+function spawnButton(ctx: Ctx, look: SpawnLook, caption: string, round: boolean): void {+ const cx = 250, cy = 318;+ // A soft halo, then the tile.+ const halo = ctx.createRadialGradient(cx, cy, 60, cx, cy, 230);+ halo.addColorStop(0, `${look.accent}66`);+ halo.addColorStop(1, `${look.accent}00`);+ ctx.fillStyle = halo;+ ctx.fillRect(cx - 240, cy - 240, 480, 480);+ const tile = ctx.createLinearGradient(cx, cy - 150, cx, cy + 150);+ tile.addColorStop(0, "#ffffff");+ tile.addColorStop(0.12, look.accent);+ tile.addColorStop(1, look.accent);+ ctx.fillStyle = tile;+ if (round) { ctx.beginPath(); ctx.arc(cx, cy, 142, 0, Math.PI * 2); } else roundRect(ctx, cx - 158, cy - 142, 316, 284, 44);+ ctx.fill();+ ctx.strokeStyle = "rgba(255,255,255,0.55)";+ ctx.lineWidth = 5;+ ctx.stroke();+ plus(ctx, cx, cy, 150, look.accentDeep);+ ctx.fillStyle = look.text;+ ctx.textAlign = "center";+ spaced(ctx, 5);+ ctx.font = `800 30px ${FONT}`;+ ctx.fillText(caption, cx, 520);+ spaced(ctx, 0);+ ctx.textAlign = "left";+}++/** The coding floor's screen: SPAWN, a new-agent button, the terminal windows of the running agents and a prompt. */+function drawLaunchScreen(ctx: Ctx, w: number, h: number): void {+ const look = SPAWN_LOOKS.coding;+ const bg = ctx.createLinearGradient(0, 0, 0, h);+ bg.addColorStop(0, look.screenTop);+ bg.addColorStop(1, look.screenBottom);+ ctx.fillStyle = bg;+ ctx.fillRect(0, 0, w, h);+ // A faint blueprint grid.+ ctx.strokeStyle = "rgba(243,177,107,0.07)";+ ctx.lineWidth = 1;+ ctx.beginPath();+ for (let x = 0; x <= w; x += 32) { ctx.moveTo(x + 0.5, 100); ctx.lineTo(x + 0.5, h); }+ for (let y = 100; y <= h; y += 32) { ctx.moveTo(0, y + 0.5); ctx.lineTo(w, y + 0.5); }+ ctx.stroke();+ screenHeader(ctx, w, look, (x, y) => {+ ctx.fillStyle = look.accent;+ ctx.font = `800 46px ${MONO}`;+ ctx.textBaseline = "middle";+ ctx.textAlign = "center";+ ctx.fillText(">_", x + 10, y + 2);+ });+ spawnButton(ctx, look, "NEW CODING AGENT", false);+ // Three terminal windows fanning down the right: two running agents and the one about to spawn.+ const states = ["#4ade80", "#fbbf24", null] as const;+ states.forEach((dot, i) => {+ const x = 520 + i * 16, y = 138 + i * 132, ww = 460, wh = 116;+ if (dot) {+ ctx.fillStyle = "rgba(10,7,20,0.82)";+ roundRect(ctx, x, y, ww, wh, 14);+ ctx.fill();+ ctx.strokeStyle = "rgba(243,177,107,0.35)";+ ctx.lineWidth = 2;+ ctx.stroke();+ ctx.fillStyle = "rgba(255,255,255,0.07)";+ ctx.fillRect(x + 2, y + 2, ww - 4, 28);+ ["#f3b16b", "#8b7fb0", "#6c6384"].forEach((c, k) => {+ ctx.fillStyle = c;+ ctx.beginPath(); ctx.arc(x + 20 + k * 20, y + 16, 6, 0, Math.PI * 2); ctx.fill();+ });+ ctx.fillStyle = dot;+ ctx.beginPath(); ctx.arc(x + ww - 22, y + 16, 7, 0, Math.PI * 2); ctx.fill();+ for (let line = 0; line < 3; line += 1) {+ ctx.fillStyle = line === 0 ? look.accent : "rgba(255,241,222,0.55)";+ ctx.fillRect(x + 20, y + 46 + line * 22, line === 0 ? 18 : 12, 10);+ ctx.fillStyle = "rgba(255,241,222,0.42)";+ ctx.fillRect(x + 48, y + 46 + line * 22, 120 + ((i * 97 + line * 61) % 230), 10);+ }+ } else {+ ctx.setLineDash([14, 10]);+ ctx.strokeStyle = look.accent;+ ctx.lineWidth = 3;+ roundRect(ctx, x, y, ww, wh, 14);+ ctx.stroke();+ ctx.setLineDash([]);+ plus(ctx, x + ww / 2, y + wh / 2, 46, look.accent);+ }+ });+ // The prompt line with its cursor.+ ctx.fillStyle = "rgba(0,0,0,0.25)";+ ctx.fillRect(0, h - 92, w, 92);+ ctx.textBaseline = "middle";+ ctx.font = `700 32px ${MONO}`;+ ctx.fillStyle = look.accent;+ ctx.fillText("$", 44, h - 46);+ ctx.fillStyle = look.text;+ ctx.fillText("spawn --agent", 84, h - 46);+ const end = 84 + ctx.measureText("spawn --agent").width + 12;+ ctx.fillStyle = look.accent;+ ctx.fillRect(end, h - 64, 20, 36);+}++/** The agents floor's screen: the ghost and SPAWN, a new-agent button, the team with a place for the next one. */+function drawSpawnScreen(ctx: Ctx, w: number, h: number): void {+ const look = SPAWN_LOOKS.agents;+ const bg = ctx.createLinearGradient(0, 0, 0, h);+ bg.addColorStop(0, look.screenTop);+ bg.addColorStop(1, look.screenBottom);+ ctx.fillStyle = bg;+ ctx.fillRect(0, 0, w, h);+ screenHeader(ctx, w, look, (x, y) => drawGhost(ctx, x + 12, y - 30, 60, look.text, look.screenTop));+ spawnButton(ctx, look, "NEW AGENT", true);+ // The team: two toy figures and, dashed, the one about to spawn.+ const figures = [{ x: 620, colour: "#c4775a", shirt: "#e9dcc4" }, { x: 780, colour: "#7c8fa8", shirt: "#d9a441" }, { x: 940, colour: null, shirt: null }];+ const floorY = 480;+ ctx.fillStyle = "rgba(159,191,154,0.14)";+ roundRect(ctx, 530, floorY - 6, 480, 16, 8);+ ctx.fill();+ for (const f of figures) {+ if (f.colour && f.shirt) {+ ctx.fillStyle = f.shirt;+ roundRect(ctx, f.x - 42, floorY - 130, 84, 124, 30);+ ctx.fill();+ ctx.fillStyle = "#f1dcc3";+ ctx.beginPath(); ctx.arc(f.x, floorY - 186, 50, 0, Math.PI * 2); ctx.fill();+ ctx.fillStyle = f.colour;+ ctx.beginPath(); ctx.arc(f.x, floorY - 200, 50, Math.PI, Math.PI * 2); ctx.fill();+ ctx.fillStyle = "#2b2926";+ for (const dx of [-16, 16]) { ctx.beginPath(); ctx.arc(f.x + dx, floorY - 180, 6, 0, Math.PI * 2); ctx.fill(); }+ } else {+ ctx.setLineDash([12, 9]);+ ctx.strokeStyle = look.accent;+ ctx.lineWidth = 4;+ roundRect(ctx, f.x - 42, floorY - 130, 84, 124, 30);+ ctx.stroke();+ ctx.beginPath(); ctx.arc(f.x, floorY - 186, 50, 0, Math.PI * 2); ctx.stroke();+ ctx.setLineDash([]);+ plus(ctx, f.x, floorY - 186, 40, look.accent);+ // Sparkles round the newcomer.+ ctx.fillStyle = look.accent;+ for (const [sx, sy, r] of [[f.x + 64, floorY - 250, 7], [f.x - 66, floorY - 226, 5], [f.x + 58, floorY - 120, 5]] as const) {+ ctx.beginPath();+ ctx.moveTo(sx, sy - r * 2); ctx.lineTo(sx + r * 0.6, sy - r * 0.6); ctx.lineTo(sx + r * 2, sy); ctx.lineTo(sx + r * 0.6, sy + r * 0.6);+ ctx.lineTo(sx, sy + r * 2); ctx.lineTo(sx - r * 0.6, sy + r * 0.6); ctx.lineTo(sx - r * 2, sy); ctx.lineTo(sx - r * 0.6, sy - r * 0.6);+ ctx.closePath(); ctx.fill();+ }+ }+ }+ // Name bars under the two who are here.+ for (const f of figures.slice(0, 2)) {+ ctx.fillStyle = "rgba(241,235,225,0.75)";+ roundRect(ctx, f.x - 50, floorY + 30, 100, 14, 7);+ ctx.fill();+ }+ // A strip of the team's colours along the bottom.+ ctx.fillStyle = "rgba(0,0,0,0.22)";+ ctx.fillRect(0, h - 92, w, 92);+ ["#c4775a", "#7c8fa8", "#d9a441", "#74866c", "#b56a4c", "#9fae93"].forEach((c, i) => {+ ctx.fillStyle = c;+ ctx.beginPath(); ctx.arc(64 + i * 52, h - 46, 17, 0, Math.PI * 2); ctx.fill();+ });+ ctx.setLineDash([8, 6]);+ ctx.strokeStyle = look.accent;+ ctx.lineWidth = 3;+ ctx.beginPath(); ctx.arc(64 + 6 * 52, h - 46, 17, 0, Math.PI * 2); ctx.stroke();+ ctx.setLineDash([]);+}++/**+ * The pad's face, drawn for a circle of the canvas' full width: speckled+ * stone, an outer metal band, a ring of tick marks, four chevrons pointing in+ * at the terminal and a fine inner circle. The glowing ring is its own mesh.+ */+function drawPad(floor: OfficeFloor) {+ return (ctx: Ctx, w: number, h: number): void => {+ const look = SPAWN_LOOKS[floor];+ const cx = w / 2, cy = h / 2, R = w / 2;+ ctx.clearRect(0, 0, w, h);+ ctx.save();+ ctx.beginPath(); ctx.arc(cx, cy, R, 0, Math.PI * 2); ctx.clip();+ ctx.fillStyle = look.pad;+ ctx.fillRect(0, 0, w, h);+ // Terrazzo / limestone speckles, deterministic.+ let seed = floor === "coding" ? 7331 : 1337;+ const rand = () => { seed = (seed * 1664525 + 1013904223) >>> 0; return seed / 0x1_0000_0000; };+ for (let i = 0; i < 2600; i += 1) {+ const a = rand() * Math.PI * 2, r = Math.sqrt(rand()) * R;+ ctx.fillStyle = look.speck[i % look.speck.length];+ const s = 2 + rand() * (i % 9 === 0 ? 6 : 3);+ ctx.fillRect(cx + Math.cos(a) * r, cy + Math.sin(a) * r, s, s);+ }+ // The outer metal band and a thin line inside it.+ ctx.lineWidth = R * 0.05;+ ctx.strokeStyle = look.padEdge;+ ctx.beginPath(); ctx.arc(cx, cy, R * 0.975, 0, Math.PI * 2); ctx.stroke();+ ctx.lineWidth = R * 0.008;+ ctx.beginPath(); ctx.arc(cx, cy, R * 0.915, 0, Math.PI * 2); ctx.stroke();+ // Tick marks, longer every 45°.+ ctx.strokeStyle = look.padBand;+ ctx.lineCap = "round";+ for (let i = 0; i < 48; i += 1) {+ const a = (i / 48) * Math.PI * 2, major = i % 6 === 0;+ const r0 = R * (major ? 0.66 : 0.7), r1 = R * 0.76;+ ctx.lineWidth = major ? R * 0.018 : R * 0.008;+ ctx.beginPath();+ ctx.moveTo(cx + Math.cos(a) * r0, cy + Math.sin(a) * r0);+ ctx.lineTo(cx + Math.cos(a) * r1, cy + Math.sin(a) * r1);+ ctx.stroke();+ }+ // Four chevrons pointing in at the terminal.+ ctx.fillStyle = look.padBand;+ for (let i = 0; i < 4; i += 1) {+ const a = (i / 4) * Math.PI * 2 + Math.PI / 4;+ ctx.save();+ ctx.translate(cx + Math.cos(a) * R * 0.56, cy + Math.sin(a) * R * 0.56);+ ctx.rotate(a);+ ctx.beginPath();+ ctx.moveTo(R * 0.05, -R * 0.07); ctx.lineTo(-R * 0.02, 0); ctx.lineTo(R * 0.05, R * 0.07);+ ctx.lineTo(R * 0.02, R * 0.07); ctx.lineTo(-R * 0.05, 0); ctx.lineTo(R * 0.02, -R * 0.07);+ ctx.closePath();+ ctx.fill();+ ctx.restore();+ }+ ctx.lineWidth = R * 0.01;+ ctx.strokeStyle = look.padBand;+ ctx.globalAlpha = 0.6;+ ctx.beginPath(); ctx.arc(cx, cy, R * 0.46, 0, Math.PI * 2); ctx.stroke();+ ctx.globalAlpha = 1;+ ctx.restore();+ };+}++const padCache = new Map<string, MeshStandardMaterial>();++const faces = {+ screen: (floor: OfficeFloor) => canvasMaterial(`spawn:screen:${floor}`, 1024, 690, floor === "coding" ? drawLaunchScreen : drawSpawnScreen,+ { glow: 0.9, fallback: SPAWN_LOOKS[floor].screenTop, roughness: 0.3 }),+ pad: (floor: OfficeFloor) => {+ const key = `spawn:pad:${floor}`;+ let material = padCache.get(key);+ if (!material) {+ const map = cachedCanvasTexture(key, 1024, 1024, drawPad(floor));+ material = new MeshStandardMaterial({ color: map ? "#ffffff" : SPAWN_LOOKS[floor].pad, map, roughness: floor === "coding" ? 0.35 : 0.6 });+ padCache.set(key, material);+ }+ return material;+ },+};++// ---------------------------------------------------------------------------+// Geometry+// ---------------------------------------------------------------------------++const PAD_R = FURNITURE_SIZE.spawnPad.w / 2;+/** The glowing ring set into the pad, inside the checkpoint's gold ring. */+const GLOW_RING: [number, number] = [PAD_R * 0.845, PAD_R * 0.885];++const SGEO = {+ pad: new CylinderGeometry(PAD_R, PAD_R, 0.012, 72),+ glowRing: new RingGeometry(GLOW_RING[0], GLOW_RING[1], 72),+ core: new CylinderGeometry(0.045, 0.045, 1, 16),+ tube: new CylinderGeometry(0.1, 0.1, 1, 24, 1, true),+ collar: new TorusGeometry(0.105, 0.014, 8, 28),+ button: new CylinderGeometry(0.052, 0.052, 0.012, 24),+ buttonRing: new TorusGeometry(0.066, 0.008, 6, 24),+};+SGEO.glowRing.rotateX(-Math.PI / 2);+SGEO.collar.rotateX(Math.PI / 2);+SGEO.buttonRing.rotateX(Math.PI / 2);++function Mesh3({ geometry, material, position, rotation, scale, cast = true }: {+ geometry: BufferGeometry; material: MeshStandardMaterial; position: Vec3; rotation?: Vec3; scale?: Vec3 | number; cast?: boolean;+}) {+ return <mesh geometry={geometry} material={material} position={position} rotation={rotation} scale={scale} castShadow={cast} receiveShadow />;+}++/** A bar of the prompt glyph: a unit box scaled to `size`, turned about z. */+function Bar({ size, position, angle, material }: { size: Vec3; position: Vec3; angle: number; material: MeshStandardMaterial }) {+ return <Mesh3 geometry={GEO.box} material={material} position={position} rotation={[0, 0, angle]} scale={size} />;+}++// ---------------------------------------------------------------------------+// Props (local space: centred on the origin, front faces +z)+// ---------------------------------------------------------------------------++/** Pillar centres and the console height, shared with the fittings. */+const PILLAR_X = 0.54;+const CONSOLE_Y = 0.95;+const SCREEN_Y = 1.42;+const LINTEL_Y = 1.99;++/** The floor's crest on the lintel: the brass ghost downstairs, a brass prompt glyph (>_) upstairs. */+function Crest({ floor, metal }: { floor: OfficeFloor; metal: MeshStandardMaterial }) {+ if (floor === "agents") {+ // The ghost is 1 unit tall with its back on z = 0 and ~0.08 deep: centre it on the lintel, both faces show.+ return <mesh geometry={GHOST_GEOMETRY} material={metal} position={[0, LINTEL_Y + 0.05, -0.02]} scale={[0.15, 0.15, 0.5]} castShadow />;+ }+ return (+ <group position={[-0.03, LINTEL_Y + 0.105, 0]}>+ <Bar size={[0.075, 0.022, 0.03]} position={[0, 0.022, 0]} angle={-0.6} material={metal} />+ <Bar size={[0.075, 0.022, 0.03]} position={[0, -0.022, 0]} angle={0.6} material={metal} />+ <Box size={[0.07, 0.022, 0.03]} position={[0.075, -0.042, 0]} material={metal} />+ </group>+ );+}++/**+ * The spawn terminal: a plinth with a light line, two pillars with light+ * strips, a lintel with the floor's crest, the double-sided screen hanging+ * between the pillars, and a console slab across them with a glowing spawn+ * button each side over a glass tube with the energy core.+ */+export function SpawnTerminal() {+ const floor = useOfficeStore((s) => s.floor);+ const m = spawnMaterials(floor);+ const screen = faces.screen(floor);+ return (+ <group>+ {/* Plinth with a light line along both long faces. */}+ <Rounded size={[1.12, 0.08, 0.62]} radius={0.03} position={[0, 0.04, 0]} material={m.plinth} />+ {[-1, 1].map((side) => <Box key={side} size={[1.0, 0.012, 0.01]} position={[0, 0.05, side * 0.312]} material={m.glow} cast={false} />)}++ {/* Pillars: metal feet, wood shafts, a light strip down each face. */}+ {[-PILLAR_X, PILLAR_X].map((x) => (+ <group key={x}>+ <Box size={[0.12, 0.04, 0.22]} position={[x, 0.1, 0]} material={m.metal} />+ <Rounded size={[0.12, 1.86, 0.2]} radius={0.04} position={[x, 1.01, 0]} material={m.body} />+ {[-1, 1].map((side) => <Box key={side} size={[0.014, 1.6, 0.012]} position={[x, 1.04, side * 0.101]} material={m.glow} cast={false} />)}+ </group>+ ))}++ {/* Lintel with metal trim lines and the crest. */}+ <Rounded size={[1.2, 0.1, 0.22]} radius={0.035} position={[0, LINTEL_Y, 0]} material={m.body} />+ {[-1, 1].map((side) => <Box key={side} size={[1.1, 0.012, 0.01]} position={[0, LINTEL_Y, side * 0.111]} material={m.metal} cast={false} />)}+ <Crest floor={floor} metal={m.metal} />++ {/* The screen: a bezel between the pillars with a face on each side and metal brackets. */}+ <group position={[0, SCREEN_Y, 0]}>+ <Rounded size={[0.94, 0.66, 0.07]} radius={0.03} position={[0, 0, 0]} material={m.bezel} />+ <Box size={[0.9, 0.012, 0.074]} position={[0, 0.324, 0]} material={m.metal} cast={false} />+ <mesh position={[0, 0, 0.0355]} material={screen}><planeGeometry args={[0.86, 0.58]} /></mesh>+ <mesh position={[0, 0, -0.0355]} rotation={[0, Math.PI, 0]} material={screen}><planeGeometry args={[0.86, 0.58]} /></mesh>+ {[-0.475, 0.475].map((x) => <Box key={x} size={[0.02, 0.1, 0.05]} position={[x, 0, 0]} material={m.metal} />)}+ </group>++ {/* The console across the pillars, a spawn button each side. */}+ <Rounded size={[0.96, 0.035, 0.46]} radius={0.012} position={[0, CONSOLE_Y, 0]} material={m.body} />+ {[-1, 1].map((side) => (+ <group key={side} position={[0, CONSOLE_Y + 0.018, side * 0.14]}>+ <Mesh3 geometry={SGEO.button} material={m.glow} position={[0, 0.004, 0]} cast={false} />+ <Mesh3 geometry={SGEO.buttonRing} material={m.metal} position={[0, 0.004, 0]} cast={false} />+ </group>+ ))}++ {/* Under it the glass tube with the energy core and a metal collar at each end. */}+ <Mesh3 geometry={SGEO.core} material={m.glow} position={[0, 0.515, 0]} scale={[1, 0.83, 1]} cast={false} />+ <Mesh3 geometry={SGEO.tube} material={m.glass} position={[0, 0.515, 0]} scale={[1, 0.83, 1]} cast={false} />+ <Mesh3 geometry={SGEO.collar} material={m.metal} position={[0, 0.105, 0]} />+ <Mesh3 geometry={SGEO.collar} material={m.metal} position={[0, 0.925, 0]} />+ </group>+ );+}++/** The spawn pad: a thin stone disc with its drawn face and the glowing ring set into it. */+export function SpawnPad() {+ const floor = useOfficeStore((s) => s.floor);+ const m = spawnMaterials(floor);+ return (+ <group>+ <Mesh3 geometry={SGEO.pad} material={faces.pad(floor)} position={[0, 0.006, 0]} cast={false} />+ <Mesh3 geometry={SGEO.glowRing} material={m.glow} position={[0, 0.0135, 0]} cast={false} />+ </group>+ );+}++export const SPAWN_RENDERERS: Record<Extract<FurnitureKind, "spawnPad" | "spawnTerminal">, (props: { item: Furniture }) => JSX.Element> = {+ spawnPad: () => <SpawnPad />,+ spawnTerminal: () => <SpawnTerminal />,+};++// ---------------------------------------------------------------------------+// Fittings: the moving parts+// ---------------------------------------------------------------------------++/** How long a newcomer's column of light lasts. */+const BEAM_S = 1.8;+const BEAM_H = 2.8;++const beamGeometry = new CylinderGeometry(0.42, 0.42, BEAM_H, 32, 1, true);+const burstGeometry = new RingGeometry(0.3, 0.42, 48);+burstGeometry.rotateX(-Math.PI / 2);+const gyroGeometry = [new TorusGeometry(0.52, 0.011, 6, 64), new TorusGeometry(0.6, 0.009, 6, 64)];++const beamMaterials = new Map<OfficeFloor, { beam: MeshBasicMaterial; burst: MeshBasicMaterial }>();+function beamMaterialsFor(floor: OfficeFloor) {+ let set = beamMaterials.get(floor);+ if (!set) {+ // Bright at the floor, gone at the top.+ const fade = cachedCanvasTexture("spawn:beam", 4, 128, (ctx, w, h) => {+ const g = ctx.createLinearGradient(0, 0, 0, h);+ g.addColorStop(0, "rgba(0,0,0,1)");+ g.addColorStop(1, "rgba(255,255,255,1)");+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, w, h);+ });+ const colour = SPAWN_LOOKS[floor].glow;+ set = {+ beam: new MeshBasicMaterial({ color: colour, map: fade, transparent: true, opacity: 0, blending: AdditiveBlending, depthWrite: false, side: DoubleSide, toneMapped: false }),+ burst: new MeshBasicMaterial({ color: colour, transparent: true, opacity: 0, blending: AdditiveBlending, depthWrite: false, side: DoubleSide, toneMapped: false }),+ };+ beamMaterials.set(floor, set);+ }+ return set;+}++/**+ * The spawn point's life: two gyroscope rings turning round the floor token,+ * the glow breathing, and a column of light on the pad whenever someone new+ * arrives on the floor (a newcomer walks off the pad to its desk). Reduced+ * motion keeps the rings still and skips the beam.+ */+export function SpawnFittings({ terminal, arrival, floor, newcomers, animate }: {+ terminal: Point; arrival: Point; floor: OfficeFloor; newcomers: ReadonlySet<string>; animate: boolean;+}) {+ const m = spawnMaterials(floor);+ const beams = beamMaterialsFor(floor);+ const gyroA = useRef<Group>(null);+ const gyroB = useRef<Group>(null);+ const beam = useRef<Mesh>(null);+ const burst = useRef<Mesh>(null);+ // -1 = start on the next frame; null = no beam running.+ const beamStart = useRef<number | null>(null);+ const seen = useRef<ReadonlySet<string>>(newcomers);+ useEffect(() => {+ const fresh = [...newcomers].some((id) => !seen.current.has(id));+ seen.current = newcomers;+ if (fresh && animate) beamStart.current = -1;+ }, [newcomers, animate]);+ // The glow is shared: leave it at rest when the fittings go.+ useEffect(() => () => { m.glow.emissiveIntensity = 1.25; }, [m]);++ useFrame(({ clock }) => {+ const t = clock.elapsedTime;+ if (gyroA.current && gyroB.current) {+ gyroA.current.rotation.set(animate ? t * 0.9 : 1.1, animate ? t * 0.35 : 0.3, 0);+ gyroB.current.rotation.set(animate ? -t * 0.55 : 0.4, 0, animate ? t * 0.7 : 1.2);+ }+ m.glow.emissiveIntensity = animate ? 1.2 + Math.sin(t * 2.1) * 0.25 : 1.25;+ if (beamStart.current === -1) beamStart.current = t;+ const start = beamStart.current;+ const p = start === null ? 1 : (t - start) / BEAM_S;+ const running = p >= 0 && p < 1;+ if (!running) beamStart.current = null;+ if (beam.current && burst.current) {+ beam.current.visible = running;+ burst.current.visible = running;+ if (running) {+ const rise = Math.min(1, p / 0.15);+ beams.beam.opacity = 0.75 * rise * (1 - Math.max(0, (p - 0.15) / 0.85));+ beam.current.scale.set(1.15 - 0.5 * p, 0.4 + 0.6 * rise, 1.15 - 0.5 * p);+ beam.current.position.y = (BEAM_H * beam.current.scale.y) / 2;+ burst.current.scale.setScalar(1 + p * 2.2);+ beams.burst.opacity = 0.8 * (1 - p);+ }+ }+ });++ return (+ <>+ <group position={[terminal.x, SPAWN.tokenY, terminal.z]}>+ <group ref={gyroA}><mesh geometry={gyroGeometry[0]} material={m.glow} /></group>+ <group ref={gyroB}><mesh geometry={gyroGeometry[1]} material={m.glow} /></group>+ </group>+ <group position={[arrival.x, 0, arrival.z]}>+ <mesh ref={beam} geometry={beamGeometry} material={beams.beam} visible={false} renderOrder={2} />+ <mesh ref={burst} geometry={burstGeometry} material={beams.burst} position={[0, 0.03, 0]} visible={false} renderOrder={2} />+ </group>+ </>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/society/office/minimap.ts b/jarvis/ui/web/frontend/src/components/society/office/minimap.tsindex e6de7faf17..d6e35b9c38 100644--- a/jarvis/ui/web/frontend/src/components/society/office/minimap.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/minimap.ts@@ -311,7 +311,7 @@ export const MAP_PAINT = {const FURNITURE_PAINT: Partial<Record<FurnitureKind, string>> = {couch: "#4a5366", coffeeTable: "#c89f74", meetingTable: "#c89f74", teamBoard: "#f4f4f0", receptionDesk: "#f2eee6",- kiosk: "#3a3f4b", lockers: "#5fa8a0", mirror: "#d6ecf8", coffeeBar: "#8a6240", waterCooler: "#6fb7ea", arcade: "#6a58b0",+ lockers: "#5fa8a0", mirror: "#d6ecf8", coffeeBar: "#8a6240", waterCooler: "#6fb7ea", arcade: "#6a58b0",beanbag: "#e27d60", bookshelf: "#8a6240", plant: MAP_PAINT.plant, rug: MAP_PAINT.rug, elevator: "#c9ced6",breakSofa: "#d8cdb9", breakSofaCorner: "#d8cdb9", breakTable: "#d6b98f", breakRug: "#e2c9a8", breakBookcase: "#a88660",readingNook: "#93a58a", foosball: "#3f7d4a", breakPlant: MAP_PAINT.plant, arcadeMat: "#2a2548",@@ -323,6 +323,7 @@ const FURNITURE_PAINT: Partial<Record<FurnitureKind, string>> = {roundRug: "#e6ddca",brandWall: "#d2b286", agentTotem: "#2b2f33", lobbySofa: "#efe9de", lobbyArmchair: "#a8653a", lobbyTable: "#e7ddcc",sideTable: "#f1eeea", lobbyLamp: "#c7a15e", oliveTree: MAP_PAINT.plant, awardCase: "#d2b286", entranceMat: "#3b3a37", lobbyRug: "#e8dfcf",+ spawnPad: "#d8c08c", spawnTerminal: "#2b2f33",};export const STATE_RING: Record<MinimapAgentState, string> = {@@ -330,12 +331,13 @@ export const STATE_RING: Record<MinimapAgentState, string> = {};/** Checkpoint icon per checkpoint kind; the same pictures as the 3D tokens (CheckpointMarker). */-export const CHECKPOINT_ICON_KEYS: Record<CheckpointKind, "plus" | "list" | "team" | "shirt" | "star" | "coffee" | "elevator" | "target"> = {- create: "plus", manage: "list", team: "team", wardrobe: "shirt", lead: "star", break: "coffee", elevator: "elevator", mission: "target",+export const CHECKPOINT_ICON_KEYS: Record<CheckpointKind, "spawn" | "plus" | "list" | "team" | "shirt" | "star" | "coffee" | "elevator" | "target"> = {+ spawn: "spawn", launch: "spawn", create: "plus", manage: "list", team: "team", wardrobe: "shirt", lead: "star", break: "coffee", elevator: "elevator", mission: "target",};/** Stroke-only icons in a 24 × 24 box; kept in sync with CheckpointMarker's paths. */const ICON_PATHS: Record<(typeof CHECKPOINT_ICON_KEYS)[CheckpointKind], string> = {+ spawn: "M12 8.5v7M8.5 12h7M5.2 7.5A8 8 0 0 1 18.8 7.5M18.8 16.5A8 8 0 0 1 5.2 16.5",plus: "M12 5v14M5 12h14",list: "M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01",team: "M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM3 20c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5M16.5 11a2.5 2.5 0 1 0 0-5M18 14.5c2 .6 3.5 2.4 3.5 5",@@ -473,11 +475,11 @@ export function drawFloorArt(ctx: Ctx, layout: OfficeLayout, t: MapTransform, arfor (const item of layout.furniture) {const isRug = item.kind === "rug" || item.kind === "executiveRug" || item.kind === "teamRug"|| item.kind === "breakRug" || item.kind === "arcadeMat" || item.kind === "lobbyRug"- || item.kind === "entranceMat" || item.kind === "roundRug";+ || item.kind === "entranceMat" || item.kind === "roundRug" || item.kind === "spawnPad";if ((pass === "rug") !== isRug) continue;const colour = FURNITURE_PAINT[item.kind] ?? MAP_PAINT.furniture;const fp = footprint(item);- if (item.kind === "plant" || item.kind === "designerPlant" || item.kind === "breakPlant" || item.kind === "beanbag") {+ if (item.kind === "plant" || item.kind === "designerPlant" || item.kind === "breakPlant" || item.kind === "beanbag" || item.kind === "spawnPad") {const c = worldToMap(t, item);ctx.beginPath();ctx.arc(c.x, c.y, Math.max(1.2, (FURNITURE_SIZE[item.kind].w / 2) * t.scale * 0.85), 0, Math.PI * 2);diff --git a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.tsindex e1b0dde218..941e6201b0 100644--- a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts@@ -1,7 +1,7 @@import { describe, expect, it } from "vitest";import {allDesks, archPosts, buildOfficeLayout, countStates, departmentKey, FURNITURE_SIZE, footprint, groupDepartments,- MAX_DEPARTMENTS, MIN_DEPARTMENTS, COMMAND_DESK, COMMAND_REACH, type OfficeAgentInput,+ MAX_DEPARTMENTS, MIN_DEPARTMENTS, COMMAND_DESK, COMMAND_REACH, SPAWN, type OfficeAgentInput,} from "./officeLayout";import { buildNavGrid, isWalkable } from "./officeNav";import { cameraHome, fitDistance, focusBounds } from "./officeCamera";@@ -114,7 +114,7 @@ describe("office layout", () => {expect(plain).toEqual(buildOfficeLayout(roster, { variant: "agents" }));expect(plain.variant).toBe("agents");expect(plain.rooms.map((r) => r.kind)).toEqual(["lead", "team", "wardrobe", "reception", "break"]);- expect(plain.checkpoints.map((c) => c.id)).toEqual(["create", "manage", "team", "wardrobe", "lead", "break", "elevator"]);+ expect(plain.checkpoints.map((c) => c.id)).toEqual(["spawn", "create", "manage", "team", "wardrobe", "lead", "break", "elevator"]);});it("builds the coding floor: workspaces as departments, Mission Control and server room, no lead desks", () => {@@ -123,7 +123,7 @@ describe("office layout", () => {expect(layout.variant).toBe("coding");expect(layout.rooms.map((r) => r.kind)).toEqual(["command", "team", "server", "reception", "break"]);expect(layout.lead.desks).toEqual([]);- expect(layout.checkpoints.map((c) => c.id)).toEqual(["mission", "elevator", "break"]);+ expect(layout.checkpoints.map((c) => c.id)).toEqual(["launch", "mission", "elevator", "break"]);expect(layout.departments.map((d) => d.label)).toEqual(["Personal Jarvis", "Website", "", ""]);expect(layout.furniture.some((f) => f.room === "lead" || f.room === "wardrobe")).toBe(false);expect(layout.spots.some((s) => s.room === "command")).toBe(true);@@ -179,6 +179,58 @@ describe("office layout", () => {expect(isWalkable(grid, stop.approach!)).toBe(true);});+ for (const [variant, id] of [["agents", "spawn"], ["coding", "launch"]] as const) {+ for (const count of [0, 12, 40]) {+ it(`puts the spawn point on the aisle crossing in the middle of the floor (${variant}, ${count} agents)`, () => {+ const roster = Array.from({ length: count }, (_, i) => agent(`a${i}`, `P${i % 6}`));+ const layout = buildOfficeLayout(roster, { variant });+ const stop = layout.checkpoints.find((c) => c.id === id)!;+ const terminal = layout.furniture.find((f) => f.kind === "spawnTerminal")!;+ const pad = layout.furniture.find((f) => f.kind === "spawnPad")!;+ expect(stop.room).toBe("floor");+ expect([terminal.x, terminal.z]).toEqual([stop.x, stop.z]);+ expect([pad.x, pad.z]).toEqual([stop.x, stop.z]);+ // On the centre line between the two department columns, in a cross aisle nearest the floor's middle.+ expect(stop.x).toBeCloseTo((layout.bounds.minX + layout.bounds.maxX) / 2, 9);+ const rowStarts = [...new Set(layout.departments.map((d) => d.minZ))].sort((p, q) => p - q);+ const crossings = rowStarts.slice(1).map((start, i) => {+ const above = Math.max(...layout.departments.filter((d) => d.minZ === rowStarts[i]).map((d) => d.maxZ));+ return (above + start) / 2;+ });+ expect(crossings.length).toBeGreaterThan(0);+ const middle = (layout.bounds.minZ + layout.bounds.maxZ) / 2;+ const nearest = Math.min(...crossings.map((c) => Math.abs(c - middle)));+ expect(Math.abs(stop.z - middle)).toBeCloseTo(nearest, 6);+ // The whole pad stays clear of every department, and the ring sits on the pad.+ const padBox = footprint(pad);+ for (const dept of layout.departments) {+ const overlap = padBox.minX < dept.maxX && dept.minX < padBox.maxX && padBox.minZ < dept.maxZ && dept.minZ < padBox.maxZ;+ expect(overlap, dept.id).toBe(false);+ }+ expect(stop.radius).toBeLessThanOrEqual(FURNITURE_SIZE.spawnPad.w / 2);+ // The token floats above the terminal; newcomers appear where "walk there" ends, south of the screen.+ expect(stop.tokenY).toBeGreaterThan(FURNITURE_SIZE.spawnTerminal.h);+ expect(layout.arrival).toEqual(stop.approach);+ expect(layout.arrival.z - stop.z).toBeCloseTo(SPAWN.approach, 9);+ expect(isWalkable(buildNavGrid(layout), layout.arrival)).toBe(true);+ });+ }+ }++ it("keeps only one spawn point per floor, and the agents floor's Agent board in the lobby", () => {+ const agents = buildOfficeLayout([agent("a1", "Codex")]);+ const coding = buildOfficeLayout([agent("p1", "Personal Jarvis")], { variant: "coding" });+ for (const layout of [agents, coding]) {+ expect(layout.furniture.filter((f) => f.kind === "spawnTerminal")).toHaveLength(1);+ expect(layout.furniture.filter((f) => f.kind === "spawnPad")).toHaveLength(1);+ }+ const board = agents.furniture.find((f) => f.kind === "agentTotem")!;+ expect(board.room).toBe("reception");+ const manage = agents.checkpoints.find((c) => c.id === "manage")!;+ expect([manage.x, manage.z - 1.4]).toEqual([board.x, board.z]);+ expect(coding.furniture.some((f) => f.kind === "agentTotem")).toBe(false);+ });+it("counts states", () => {expect(countStates([{ state: "working" }, { state: "idle" }, { state: "working" }])).toEqual({ working: 2, idle: 1, waiting: 0, paused: 0 });});diff --git a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.tsindex 3f8d687306..a2023fc786 100644--- a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts@@ -8,7 +8,7 @@* south-east, so tall rooms stand in the north and the lobby lies in front.** ┌──────────── north strip: Lead office · Team room · Wardrobe ───────────┐- * │ departments (open office, 2 columns) │+ * │ departments (open office, 2 columns) · spawn point in the middle │* └──── south strip: Reception + lobby (Agent board) · Break room ─────────┘** The coding floor (variant "coding", one elevator ride up) keeps the same@@ -17,8 +17,13 @@* office and the wardrobe. It has no lead desks. Mission Control is a modern* office: a walnut slat wall with a live video wall, a desk with three live* monitors and a lounge corner; working it starts new coding agents and- * briefs several at once. Only it, the elevator and the break room are- * checkpoints there.+ * briefs several at once. Only it, the spawn point, the elevator and the+ * break room are checkpoints there.+ *+ * Both floors have a spawn point in their middle: a round pad with a+ * terminal on the crossing of the centre aisle and the cross aisle nearest+ * the floor's centre. It spawns new Jarvis agents downstairs and new coding+ * agents upstairs, and everyone new to the floor appears on its pad.*/import type { AgentRunState, AgentTier } from "../data";import { agentsAmbience } from "./agentsAmbience";@@ -79,9 +84,11 @@ export interface WallSegment { x1: number; z1: number; x2: number; z2: number; r/*** "elevator" rides between the floors and stands in front of the lobby elevator on both of them.- * "mission" is Mission Control, the coding floor's centre hub.+ * "mission" is Mission Control on the coding floor.+ * "spawn" (agents floor) and "launch" (coding floor) are the spawn point in the floor's middle:+ * a new Jarvis agent downstairs, a new coding agent upstairs.*/-export type CheckpointKind = "create" | "manage" | "team" | "wardrobe" | "lead" | "break" | "elevator" | "mission";+export type CheckpointKind = "spawn" | "launch" | "create" | "manage" | "team" | "wardrobe" | "lead" | "break" | "elevator" | "mission";/** A place the person can walk to (or click from afar) to act. "floor" = the open office, outside every room. */export interface Checkpoint extends Point {@@ -98,7 +105,7 @@ export interface Checkpoint extends Point {}export type FurnitureKind =- | "meetingTable" | "teamBoard" | "receptionDesk" | "kiosk" | "lockers" | "mirror"+ | "meetingTable" | "teamBoard" | "receptionDesk" | "lockers" | "mirror"| "coffeeBar" | "waterCooler" | "couch" | "coffeeTable" | "arcade" | "beanbag"| "bookshelf" | "plant" | "rug" | "elevator"// Break room lounge: sofa modules and their corner, the oak coffee table, a kilim, the bookcase wall,@@ -119,7 +126,9 @@ export type FurnitureKind =| "wardrobeWall" | "dressingMirror" | "tailorDummy" | "dressingBench" | "coatStand" | "roundRug"// Lobby (agents floor): the brand wall, the Agent board totem, the waiting lounge, olive trees, the award vitrine, the mat.| "brandWall" | "agentTotem" | "lobbySofa" | "lobbyArmchair" | "lobbyTable" | "sideTable" | "lobbyLamp" | "oliveTree"- | "awardCase" | "entranceMat" | "lobbyRug";+ | "awardCase" | "entranceMat" | "lobbyRug"+ // The spawn point in the middle of both floors: the flat pad and the terminal standing on it.+ | "spawnPad" | "spawnTerminal";/*** Footprint (x-extent × z-extent before rotation) and height of each piece.@@ -132,7 +141,6 @@ export const FURNITURE_SIZE: Record<FurnitureKind, { w: number; d: number; h: nuteamBoard: { w: 2.6, d: 0.2, h: 1.9, solid: true },// The counter is 1.1 m; its slatted back wall with the help display rises to 2.2 m.receptionDesk: { w: 2.8, d: 0.9, h: 2.2, solid: true },- kiosk: { w: 1.0, d: 0.5, h: 1.8, solid: true },lockers: { w: 2.4, d: 0.5, h: 1.9, solid: true },mirror: { w: 0.9, d: 0.12, h: 1.9, solid: true },coffeeBar: { w: 2.4, d: 0.7, h: 1.05, solid: true },@@ -205,8 +213,20 @@ export const FURNITURE_SIZE: Record<FurnitureKind, { w: number; d: number; h: nuawardCase: { w: 1.3, d: 0.42, h: 1.95, solid: true },entranceMat: { w: 1, d: 1, h: 0.02, solid: false },lobbyRug: { w: 1, d: 1, h: 0.02, solid: false },+ // The spawn point: a flat round pad everyone walks over, and the double-sided terminal on it (its crest+ // tops out at 2.2 m). The pad fits the 3.2 m aisle crossing with a margin to every department.+ spawnPad: { w: 2 * 1.42, d: 2 * 1.42, h: 0.02, solid: false },+ spawnTerminal: { w: 1.2, d: 0.7, h: 2.2, solid: true },};+/**+ * The spawn point's numbers, shared by the layout, the renderer and the tests:+ * the walk-in radius round the terminal, how far south of it "walk there" and+ * a newcomer's arrival stand, and the height of its floating token (above+ * the terminal's crest).+ */+export const SPAWN = { reach: 1.15, approach: 0.95, tokenY: 2.85 } as const;+export interface Furniture extends Point {id: string;kind: FurnitureKind;@@ -239,6 +259,8 @@ export interface OfficeLayout {obstacles: Rect[];/** Where the person's character starts. */spawn: Point;+ /** Where someone new to the floor (an agent created during the visit) appears: on the spawn pad. */+ arrival: Point;/** The walkable floor inside the railing. */floor: Rect;/** The whole slab, railing included. */@@ -520,10 +542,12 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:const wardrobeRoom: Room = { id: eastKind, kind: eastKind, walled: true, minX: teamRoom.maxX, maxX, minZ: topZ, maxZ: northMaxZ,doors: [{ side: "south", at: (teamRoom.maxX + maxX) / 2, width: 1.5 }] };- // Departments between the strips.+ // Departments between the strips, and the centre line of each cross aisle between two rows.const departments: Department[] = [];+ const crossAisles: number[] = [];let z = northMaxZ + AISLE;for (let row = 0; row < rows; row += 1) {+ if (row > 0) crossAisles.push(z - AISLE / 2);for (let col = 0; col < COLUMNS; col += 1) {const index = row * COLUMNS + col;const group = groups[index];@@ -542,6 +566,11 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:// South strip: an open reception/lobby in the west, a walled break room in the east.const southMinZ = bottomZ - SOUTH_DEPTH;+ // The spawn point: on the centre aisle, at the crossing nearest the floor's middle (a+ // single row of departments, which the minimum never allows, falls back to the south aisle).+ const plazaZ = (crossAisles.length > 0 ? crossAisles : [southMinZ - AISLE / 2])+ .reduce((best, c) => (Math.abs(c - (topZ + bottomZ) / 2) < Math.abs(best - (topZ + bottomZ) / 2) ? c : best));+ const plaza: Point = { x: minX + DEPT_WIDTH + centreAisle / 2, z: plazaZ };const breakW = 10.5;const receptionRoom: Room = { id: "reception", kind: "reception", walled: false, minX, maxX: maxX - breakW, minZ: southMinZ, maxZ: bottomZ, doors: [] };const breakRoom: Room = { id: "break", kind: "break", walled: true, minX: maxX - breakW, maxX, minZ: southMinZ, maxZ: bottomZ,@@ -655,9 +684,11 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:// Reception and lobby.{ id: "elevator", kind: "elevator", x: rx0 + 0.25, z: bottomZ - 2.6, rotationY: Math.PI / 2, room: "reception" },{ id: "reception-desk", kind: "receptionDesk", x: rx0 + 3.2, z: southMinZ + 2.6, rotationY: 0, room: "reception" },- // The agents floor's Agent board is a touch-screen totem in the kiosk's place; the rest of its lobby is lobbyFurniture.- { id: "kiosk", kind: coding ? "kiosk" : "agentTotem", x: receptionRoom.maxX - 2.2, z: southMinZ + 2.2, rotationY: 0, room: "reception" },+ // The spawn point in the middle of the floor: the pad, and the terminal on it facing the lobby.+ { id: "spawn-pad", kind: "spawnPad", x: plaza.x, z: plaza.z, rotationY: 0, room: "floor" },+ { id: "spawn-terminal", kind: "spawnTerminal", x: plaza.x, z: plaza.z, rotationY: 0, room: "floor" },...(coding ? [+ // The coding lobby keeps only its plants: new coding agents are spawned in the middle of the floor.{ id: "lobby-plant-a", kind: "plant", x: rx0 + 0.6, z: southMinZ + 0.8, rotationY: 0, room: "reception" },{ id: "lobby-plant-b", kind: "plant", x: receptionRoom.maxX - 0.8, z: bottomZ - 0.7, rotationY: 0, room: "reception" },] satisfies Furniture[] : lobbyFurniture(receptionRoom)),@@ -740,17 +771,22 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:}const reception = furniture.find((f) => f.id === "reception-desk")!;- const kiosk = furniture.find((f) => f.id === "kiosk")!;const elevator = furniture.find((f) => f.id === "elevator")!;+ // The spawn point's ring surrounds the terminal; "walk there" and newcomers stand south of it, facing the screen.+ const arrival: Point = { x: plaza.x, z: plaza.z + SPAWN.approach };+ const spawnStop: Checkpoint = { id: coding ? "launch" : "spawn", room: "floor", x: plaza.x, z: plaza.z, radius: SPAWN.reach,+ tokenY: SPAWN.tokenY, approach: arrival };// The elevator's doors face east into the lobby; its checkpoint is the floor in front of them.const elevatorStop: Checkpoint = { id: "elevator", room: "reception", x: elevator.x + 0.95, z: elevator.z, radius: 1.0 };const breakStop: Checkpoint = { id: "break", room: "break", x: bx0 + 5.6, z: bz0 + 2.6, radius: 1.8 };// Mission Control's stop is a ring round the desk, usable from every side; "walk there" ends in front of the desk.const missionStop: Checkpoint = { id: "mission", room: "command", x: commandDeskAt.x, z: commandDeskAt.z - 0.3, radius: COMMAND_REACH,tokenY: 2.25, approach: { x: commandDeskAt.x, z: commandDeskAt.z + COMMAND_DESK.d / 2 + 0.55 } };- const checkpoints: Checkpoint[] = coding ? [missionStop, elevatorStop, breakStop] : [+ const board = furniture.find((f) => f.id === AGENT_BOARD_ID);+ const checkpoints: Checkpoint[] = coding ? [spawnStop, missionStop, elevatorStop, breakStop] : [+ spawnStop,{ id: "create", room: "reception", x: reception.x, z: reception.z + 1.7, radius: 1.2 },- { id: "manage", room: "reception", x: kiosk.x, z: kiosk.z + 1.4, radius: 1.1 },+ ...(board ? [{ id: "manage", room: "reception", x: board.x, z: board.z + 1.4, radius: 1.1 } satisfies Checkpoint] : []),{ id: "team", room: "team", x: tcx + 2.2, z: northMaxZ - 1.05, radius: 0.95 },{ id: "wardrobe", room: "wardrobe", x: wcx, z: tcz + 0.8, radius: 1.5 },{ id: "lead", room: "lead", x: minX + leadW / 2, z: northMaxZ - 1.5, radius: 1.3 },@@ -793,6 +829,7 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:...(coding ? { command: { id: "command", x: commandDeskAt.x, z: commandDeskAt.z, facing: "south" as const, agentId: null,size: { w: COMMAND_DESK.w, d: COMMAND_DESK.d } } } : {}),spawn: { x: rx0 + 1.4, z: bottomZ - 2.6 },+ arrival,floor,bounds: { minX: minX - EDGE, maxX: maxX + EDGE, minZ: topZ - EDGE, maxZ: bottomZ + EDGE },};@@ -800,6 +837,8 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:/** The lobby lounge's sofa, relative to the reception room's west and north edges. */const LOBBY_LOUNGE = { dx: 6.0, dz: 5.35 };+/** The agents floor's Agent board totem; the "manage" checkpoint stands in front of it. */+const AGENT_BOARD_ID = "agent-board";/*** The agents floor's lobby round the reception desk and the elevator: the@@ -816,6 +855,8 @@ function lobbyFurniture(room: Rect): Furniture[] {const piece = (id: string, kind: FurnitureKind, x: number, z: number, rotationY = 0, size?: { w: number; d: number }): Furniture =>({ id, kind, x, z, rotationY, room: "reception", ...(size ? { size } : {}) });return [+ // The Agent board: a touch-screen totem in the lobby's north-east corner.+ piece(AGENT_BOARD_ID, "agentTotem", room.maxX - 2.2, z0 + 2.2),piece("lobby-brand-wall", "brandWall", x0 + 0.22, z0 + 2.55, Math.PI / 2),piece("lobby-olive-nw", "oliveTree", x0 + 0.65, z0 + 0.35),piece("lobby-olive-se", "oliveTree", room.maxX - 0.75, room.maxZ - 0.7),diff --git a/jarvis/ui/web/frontend/src/components/society/office/officePalette.ts b/jarvis/ui/web/frontend/src/components/society/office/officePalette.tsindex 2ec0040a27..08522a0c53 100644--- a/jarvis/ui/web/frontend/src/components/society/office/officePalette.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/officePalette.ts@@ -152,8 +152,8 @@ export const PROP_COLOURS = {bell: "#e0b64a",boardFrame: "#d7d9dd",boardWhite: "#fbfbf8",- kioskBody: "#f4f2ee",- kioskHead: "#2a2e36",+ /** The dark frame of the reception's help display (and the counter's brochure tray). */+ displayFrame: "#2a2e36",paper: "#fdfcf9",rugInner: "#c9b28f",} as const;diff --git a/jarvis/ui/web/frontend/src/components/society/office/spawnPanel.css b/jarvis/ui/web/frontend/src/components/society/office/spawnPanel.cssnew file mode 100644index 0000000000..6b4be9609e--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/office/spawnPanel.css@@ -0,0 +1,27 @@+/* The spawn point's panel. Theme tokens plus the checkpoints' gold, so light and dark mode both work. */+.office-panel[data-panel="spawn"]:focus-visible, .office-panel[data-panel="launch"]:focus-visible { outline:none; }+.office-spawn { display:flex; flex-direction:column; gap:12px; min-height:0; }++/* The hero: the spawn mark on gold, a title and one line of what happens. */+.office-spawn-hero { position:relative; overflow:hidden; display:flex; align-items:flex-start; gap:12px; padding:14px; border-radius:14px; border:1px solid rgb(240 169 43 / .38); background:radial-gradient(120% 140% at 100% 0%, rgb(245 184 61 / .22), transparent 60%), hsl(var(--background) / .55); }+.office-spawn-mark { flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:14px; background:linear-gradient(160deg, #ffd476, #f0a92b); color:#1f1300; box-shadow:0 6px 18px rgb(240 169 43 / .4); }+.office-spawn-mark svg { width:24px; height:24px; }+.office-spawn-hero > div { min-width:0; }+.office-spawn-hero strong { display:block; margin-bottom:3px; font-size:14px; }+.office-spawn-hero p { margin:0; font-size:12px; line-height:1.45; color:hsl(var(--muted-foreground)); }++/* Three numbered steps side by side. */+.office-spawn-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; }+.office-spawn-steps li { display:flex; flex-direction:column; gap:6px; padding:9px 10px; border:1px solid hsl(var(--border)); border-radius:11px; background:hsl(var(--secondary) / .5); color:hsl(var(--foreground)); font-size:11.5px; line-height:1.35; }+.office-spawn-steps li span { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:hsl(var(--foreground)); color:hsl(var(--background)); font-size:11px; font-weight:700; }++/* The one big action. */+.office-spawn-go { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; border:0; border-radius:12px; background:linear-gradient(160deg, #ffd476, #f0a92b); color:#1f1300; font:inherit; font-size:13.5px; font-weight:700; cursor:pointer; box-shadow:0 4px 14px rgb(240 169 43 / .35); transition:transform .12s, box-shadow .12s, opacity .12s; }+.office-spawn-go svg { width:16px; height:16px; }+.office-spawn-go:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 6px 20px rgb(240 169 43 / .5); }+.office-spawn-go:disabled { opacity:.45; cursor:not-allowed; }+.office-spawn-go:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }+.office-spawn-foot { margin:0; font-size:11px; text-align:center; color:hsl(var(--muted-foreground)); }++@media (prefers-reduced-motion:reduce) { .office-spawn-go { transition:none; } .office-spawn-go:hover:not(:disabled) { transform:none; } }+@media (max-width:420px) { .office-spawn-steps { grid-template-columns:1fr; } }diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json b/jarvis/ui/web/frontend/src/i18n/locales/society/de.jsonindex 67f0f01d5e..31c86481f9 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json@@ -747,7 +747,7 @@"action_draft": "Zum neuen Team","action_undraft": "Aus neuem Team entfernen","draft_count": "{0} für ein neues Team ausgewählt · Teamraum öffnen",- "create_body": "Stell einen neuen Agenten ein: Aufgabe, Gehirn und Aussehen. Er kommt mit dem Aufzug und nimmt einen freien Schreibtisch.",+ "create_body": "Stell einen neuen Agenten ein: Aufgabe, Gehirn und Aussehen. Er erscheint am Spawn-Punkt in der Mitte der Etage und nimmt einen freien Schreibtisch.","create_action": "Neuen Agenten erstellen","action_show": "Zeigen","action_open": "Öffnen",@@ -806,6 +806,19 @@"cp_break_hint": "Kaffeepause ausrufen","cp_elevator": "Aufzug","cp_elevator_hint": "Den Ruf-Knopf neben den Türen drücken",+ "cp_spawn": "Spawn-Punkt",+ "cp_spawn_hint": "Einen neuen Jarvis-Agenten spawnen",+ "cp_launch": "Spawn-Punkt",+ "cp_launch_hint": "Einen neuen Coding-Agenten spawnen",+ "spawn_title": "Ein neuer Agent für dein Team",+ "spawn_body": "Er erscheint genau hier auf der Plattform und geht zu einem freien Schreibtisch.",+ "spawn_step_job": "Namen und Aufgabe festlegen",+ "spawn_step_brain": "Modell und Aussehen wählen",+ "spawn_step_arrive": "Er erscheint auf dieser Plattform",+ "spawn_action": "Agenten spawnen",+ "spawn_team": "{0} Agenten auf dieser Etage · {1} arbeiten",+ "launch_title": "Ein neuer Coding-Agent",+ "launch_body": "Wähle ein Coding-CLI und, wenn du willst, einen ersten Auftrag. Er öffnet sich als Terminal in der Agentic IDE und erscheint hier auf der Plattform.","guide": {"tablist": "Bereiche des Empfangs","tab_welcome": "Willkommen",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json b/jarvis/ui/web/frontend/src/i18n/locales/society/en.jsonindex 43651cd3e4..d571c5a7a1 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json@@ -747,7 +747,7 @@"action_draft": "Add to new team","action_undraft": "Remove from new team","draft_count": "{0} picked for a new team · open the team room",- "create_body": "Hire a new agent: give it a job, a brain and a look. It arrives by the elevator and takes a free desk.",+ "create_body": "Hire a new agent: give it a job, a brain and a look. It appears at the spawn point in the middle of the floor and takes a free desk.","create_action": "Create a new agent","action_show": "Show","action_open": "Open",@@ -806,6 +806,19 @@"cp_break_hint": "Call a coffee break","cp_elevator": "Elevator","cp_elevator_hint": "Press the call button beside the doors",+ "cp_spawn": "Spawn point",+ "cp_spawn_hint": "Spawn a new Jarvis agent",+ "cp_launch": "Spawn point",+ "cp_launch_hint": "Spawn a new coding agent",+ "spawn_title": "A new agent for your team",+ "spawn_body": "It appears right here on the pad and walks to a free desk.",+ "spawn_step_job": "Name it and describe its job",+ "spawn_step_brain": "Pick its model and its look",+ "spawn_step_arrive": "It appears on this pad",+ "spawn_action": "Spawn an agent",+ "spawn_team": "{0} agents on this floor · {1} working",+ "launch_title": "A new coding agent",+ "launch_body": "Pick a coding CLI and, if you like, a first task. It opens as a terminal in the Agentic IDE and appears here on the pad.","guide": {"tablist": "Reception sections","tab_welcome": "Welcome",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json b/jarvis/ui/web/frontend/src/i18n/locales/society/es.jsonindex e5469718dc..9abd908b9e 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json@@ -747,7 +747,7 @@"action_draft": "Añadir al nuevo equipo","action_undraft": "Quitar del nuevo equipo","draft_count": "{0} elegidos para un equipo nuevo · abrir la sala de equipos",- "create_body": "Contrata un agente nuevo: tarea, cerebro y aspecto. Llega en ascensor y ocupa un escritorio libre.",+ "create_body": "Contrata un agente nuevo: tarea, cerebro y aspecto. Aparece en el punto de aparición, en el centro de la planta, y ocupa un escritorio libre.","create_action": "Crear un agente nuevo","action_show": "Mostrar","action_open": "Abrir",@@ -806,6 +806,19 @@"cp_break_hint": "Hacer una pausa de café","cp_elevator": "Ascensor","cp_elevator_hint": "Pulsa el botón de llamada junto a las puertas",+ "cp_spawn": "Punto de aparición",+ "cp_spawn_hint": "Crea un nuevo agente de Jarvis",+ "cp_launch": "Punto de aparición",+ "cp_launch_hint": "Crea un nuevo agente de código",+ "spawn_title": "Un agente nuevo para tu equipo",+ "spawn_body": "Aparece justo aquí, en la plataforma, y va a un escritorio libre.",+ "spawn_step_job": "Ponle nombre y describe su tarea",+ "spawn_step_brain": "Elige su modelo y su aspecto",+ "spawn_step_arrive": "Aparece en esta plataforma",+ "spawn_action": "Crear un agente",+ "spawn_team": "{0} agentes en esta planta · {1} trabajando",+ "launch_title": "Un agente de código nuevo",+ "launch_body": "Elige una CLI de código y, si quieres, una primera tarea. Se abre como terminal en el Agentic IDE y aparece aquí, en la plataforma.","guide": {"tablist": "Secciones de la recepción","tab_welcome": "Bienvenida",