Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion api/accepted-breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ Once the change is on the base branch, oasdiff no longer reports it and its line
- 2026-11-15 PUT /api/v2/organizations/{organizationId}/network-policies/{networkPolicyId} added the new `team` enum value to the `scopeKind` response property for the response status `200`. A network policy can now be set for a team by id, beside the organization and a directory group; a client that never set one never reads one.
- 2026-11-15 GET /api/v2/organizations/{organizationId}/shared-use-requests added the new `team` enum value to the `sharedUseRequests/items/current/oneOf[#/components/schemas/SharedUseApproval]/members/items/kind` response property for the response status `200` (shared schema: `SharedUseApproval`, also at `sharedUseRequests/items/proposed/members/items/kind`). A shared account's audience can now name a team by id beside a person and a directory group; nothing is taken from a client, and one written before teams never sent or approved a team.
- 2026-11-15 POST /api/v2/organizations/{organizationId}/shared-use-requests/{sharedUseRequestId}/approve added the new `team` enum value to the `current/oneOf[#/components/schemas/SharedUseApproval]/members/items/kind` response property for the response status `200` (shared schema: `SharedUseApproval`, also at `proposed/members/items/kind`). A shared account's audience can now name a team by id beside a person and a directory group; nothing is taken from a client, and one written before teams never sent or approved a team.
- 2026-11-15 POST /api/v2/organizations/{organizationId}/shared-use-requests/{sharedUseRequestId}/decline added the new `team` enum value to the `current/oneOf[#/components/schemas/SharedUseApproval]/members/items/kind` response property for the response status `200` (shared schema: `SharedUseApproval`, also at `proposed/members/items/kind`). A shared account's audience can now name a team by id beside a person and a directory group; nothing is taken from a client, and one written before teams never sent or approved a team.
- 2026-11-15 POST /api/v2/organizations/{organizationId}/shared-use-requests/{sharedUseRequestId}/decline added the new `team` enum value to the `current/oneOf[#/components/schemas/SharedUseApproval]/members/items/kind` response property for the response status `200` (shared schema: `SharedUseApproval`, also at `proposed/members/items/kind`). A shared account's audience can now name a team by id beside a person and a directory group; nothing is taken from a client, and one written before teams never sent or approved a team.
- 2026-11-18 GET /api/v2/organizations/{organizationId}/people/{personId}/preferences added the new `kitebot` enum value to the `skin` response property for the response status `200`. A person's skin is the one they picked, and Kite Bot is a new one. A build from before it reads an id it does not know as `openbot`, OpenBot's own look, as it already reads any skin it does not know, so a client written against the old list shows OpenBot rather than failing.
- 2026-11-18 PATCH /api/v2/organizations/{organizationId}/people/{personId}/preferences added the new `kitebot` enum value to the `skin` response property for the response status `200`. The same skin, as a save answers it.
1 change: 1 addition & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21620,6 +21620,7 @@ components:
- openduet
- opendots
- openfuse
- kitebot
description: How OpenBot looks. openbot is OpenBot as it is without a skin.
Preferences:
type: object
Expand Down
2 changes: 1 addition & 1 deletion api/openapi/accounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ components:
enum: ['on', 'off']
SkinId:
type: string
enum: [openbot, openduet, opendots, openfuse]
enum: [openbot, openduet, opendots, openfuse, kitebot]
description: How OpenBot looks. openbot is OpenBot as it is without a skin.
Preferences:
type: object
Expand Down
9 changes: 6 additions & 3 deletions app/src/components/agents/abstract-avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import Avatar from "boring-avatars";
import { useBotLook } from "@/components/agents/bot-look";
import { drawsBotMark, useBotLook } from "@/components/agents/bot-look";
import { BotOrb } from "@/components/agents/bot-orb";

/** A Bot's avatar: its orb, or its face in a skin that has not opted in to orbs. */
/**
* A Bot's avatar: its orb or its kite, or its face in a skin that has opted in to neither.
* `BotOrb` draws whichever mark the skin asks for.
*/
export function AbstractAvatar({
name,
seed,
Expand All @@ -12,7 +15,7 @@ export function AbstractAvatar({
seed: string;
size?: number;
}) {
if (useBotLook() === "orb") {
if (drawsBotMark(useBotLook())) {
return <BotOrb name={name} seed={seed} size={size} />;
}

Expand Down
13 changes: 9 additions & 4 deletions app/src/components/agents/bot-look.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { createContext, useContext } from "react";

/** How a Bot is drawn: as its orb, or as the generated face. */
export type BotLook = "orb" | "face";
/** How a Bot is drawn: as its orb, as its kite (the Kite Bot skin), or as the generated face. */
export type BotLook = "orb" | "kite" | "face";

/** Whether Bots are drawn as a mark of their own, an orb or a kite, rather than as faces. */
export function drawsBotMark(look: BotLook): boolean {
return look !== "face";
}

/*
* Set once, from the active skin's `botLook` (see `_authed.tsx`), so a component asks how to draw a
* Bot rather than which skin is on. A skin opts in to orbs by setting `botLook: "orb"`; without a
* provider, as in a component test, Bots are faces.
* Bot rather than which skin is on. A skin opts in to orbs by setting `botLook: "orb"`, or to kites
* with `botLook: "kite"`; without a provider, as in a component test, Bots are faces.
*/
const BotLookContext = createContext<BotLook>("face");

Expand Down
9 changes: 9 additions & 0 deletions app/src/components/agents/bot-orb.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { CSSProperties } from "react";
import { useBotLook } from "@/components/agents/bot-look";
import { BotKite } from "@/components/agents/kite/bot-kite";
import AgentOrb from "@/components/agents/orb/agent-orb";
import { orbPalette } from "@/lib/orb-palette";

Expand All @@ -15,6 +17,9 @@ const STATIC_MAX_SIZE = 32;
* each run a blur and a backdrop filter on every frame. A larger orb, or one whose Bot is working,
* is the live `AgentOrb` drawing the same sphere, in the palette as it is in every state. Neither
* moves under reduced motion: `AgentOrb` honours it, and the still orb has nothing to move.
*
* Where Bots are kites (`useBotLook`, the Kite Bot skin), this draws the Bot's kite in its place, so
* every spot that draws a Bot's mark follows the skin.
*/
export function BotOrb({
seed,
Expand All @@ -27,6 +32,10 @@ export function BotOrb({
size?: number;
state?: "idle" | "working" | "waiting";
}) {
const look = useBotLook();
if (look === "kite") {
return <BotKite name={name} seed={seed} size={size} state={state} />;
}
const colors = orbPalette(seed);

if (size <= STATIC_MAX_SIZE && state === "idle") {
Expand Down
Loading
Loading