@nadicodeai/ui 8.6.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/AGENTS.md +1 -1
  2. package/LICENSES/THINKING-ORBS-MIT.txt +21 -0
  3. package/NOTICE +7 -10
  4. package/dist/components/agent-orb-appearance.d.ts +54 -0
  5. package/dist/components/agent-orb-appearance.d.ts.map +1 -0
  6. package/dist/components/agent-orb-appearance.js +87 -0
  7. package/dist/components/agent-orb.d.ts +5 -3
  8. package/dist/components/agent-orb.d.ts.map +1 -1
  9. package/dist/index.d.ts +0 -2
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +0 -2
  12. package/dist/internal/agent-orb-motion.d.ts +3 -3
  13. package/dist/internal/agent-orb-motion.d.ts.map +1 -1
  14. package/dist/internal/agent-orb-motion.js +1 -0
  15. package/dist/internal/agent-orb.d.ts +11 -1
  16. package/dist/internal/agent-orb.d.ts.map +1 -1
  17. package/dist/internal/agent-orb.js +80 -5
  18. package/docs/agent-orb.md +47 -14
  19. package/docs/contract.md +8 -29
  20. package/docs/migration/9.0.0.md +35 -0
  21. package/package.json +2 -3
  22. package/LICENSES/PAPER-SHADERS-APACHE-2.0.txt +0 -186
  23. package/dist/components/agent-visual.d.ts +0 -17
  24. package/dist/components/agent-visual.d.ts.map +0 -1
  25. package/dist/components/agent-visual.js +0 -63
  26. package/dist/components/forma-appearance.d.ts +0 -13
  27. package/dist/components/forma-appearance.d.ts.map +0 -1
  28. package/dist/components/forma-appearance.js +0 -11
  29. package/dist/components/forma-avatar.d.ts +0 -23
  30. package/dist/components/forma-avatar.d.ts.map +0 -1
  31. package/dist/components/forma-avatar.js +0 -95
  32. package/dist/internal/agent-visual/color.d.ts +0 -4
  33. package/dist/internal/agent-visual/color.d.ts.map +0 -1
  34. package/dist/internal/agent-visual/color.js +0 -78
  35. package/dist/internal/agent-visual/poster.d.ts +0 -6
  36. package/dist/internal/agent-visual/poster.d.ts.map +0 -1
  37. package/dist/internal/agent-visual/poster.js +0 -35
  38. package/dist/internal/agent-visual/recipes.d.ts +0 -15
  39. package/dist/internal/agent-visual/recipes.d.ts.map +0 -1
  40. package/dist/internal/agent-visual/recipes.js +0 -72
  41. package/dist/internal/agent-visual/renderer.d.ts +0 -10
  42. package/dist/internal/agent-visual/renderer.d.ts.map +0 -1
  43. package/dist/internal/agent-visual/renderer.js +0 -112
  44. package/dist/internal/agent-visual/shader.d.ts +0 -2
  45. package/dist/internal/agent-visual/shader.d.ts.map +0 -1
  46. package/dist/internal/agent-visual/shader.js +0 -158
  47. package/dist/internal/forma/frame.d.ts +0 -10
  48. package/dist/internal/forma/frame.d.ts.map +0 -1
  49. package/dist/internal/forma/frame.js +0 -211
  50. package/dist/internal/forma/geometry.d.ts +0 -41
  51. package/dist/internal/forma/geometry.d.ts.map +0 -1
  52. package/dist/internal/forma/geometry.js +0 -235
  53. package/dist/internal/forma/hallmark.d.ts +0 -5
  54. package/dist/internal/forma/hallmark.d.ts.map +0 -1
  55. package/dist/internal/forma/hallmark.js +0 -4
  56. package/dist/internal/forma/model.d.ts +0 -53
  57. package/dist/internal/forma/model.d.ts.map +0 -1
  58. package/dist/internal/forma/model.js +0 -70
  59. package/dist/internal/forma/motion.d.ts +0 -42
  60. package/dist/internal/forma/motion.d.ts.map +0 -1
  61. package/dist/internal/forma/motion.js +0 -194
  62. package/dist/internal/forma/rig.d.ts +0 -10
  63. package/dist/internal/forma/rig.d.ts.map +0 -1
  64. package/dist/internal/forma/rig.js +0 -211
  65. package/dist/internal/forma/still.d.ts +0 -4
  66. package/dist/internal/forma/still.d.ts.map +0 -1
  67. package/dist/internal/forma/still.js +0 -8
  68. package/dist/internal/forma/stored-appearance.d.ts +0 -29
  69. package/dist/internal/forma/stored-appearance.d.ts.map +0 -1
  70. package/dist/internal/forma/stored-appearance.js +0 -53
  71. package/docs/agent-visual.md +0 -114
  72. package/docs/forma-avatar.md +0 -110
package/AGENTS.md CHANGED
@@ -7,7 +7,7 @@ exports.
7
7
  - Component changes and admission: `docs/contract.md`.
8
8
  - Consumer setup: `docs/consuming-cross-repo.md`.
9
9
  - Tokens, CSS, motion, and assets: `../design-system/DESIGN.md`.
10
- - Agent visuals: `docs/agent-visual.md`; the Forma avatars: `docs/forma-avatar.md`.
10
+ - Agent identity, the orbs and their stored appearance: `docs/agent-orb.md`.
11
11
  - System activity indicators: `docs/activity.md`.
12
12
  - What belongs in this package and what belongs in a product: `docs/contract.md`,
13
13
  "Placement". Nadia's entry screen is the worked example that moved out.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jakub Antalik
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE CHANGED
@@ -1,15 +1,12 @@
1
- @nadicodeai/ui includes a modified derivative of Paper Shaders 0.0.78.
1
+ @nadicodeai/ui includes an adapted copy of the ribbon geometry from
2
+ thinking-orbs 0.3.1.
2
3
 
3
- Paper Shaders
4
- Copyright 2026 Paper
4
+ thinking-orbs
5
+ Copyright (c) 2026 Jakub Antalik
5
6
 
6
- Powered by Paper Shaders:
7
- https://shaders.paper.design
8
-
9
- The modified shader preserves Paper's Metaballs field, motion, colour blending,
10
- and edge calculation while adding NadicodeAI's four approved clipped surface
11
- materials. The modified source is
12
- src/internal/agent-visual/shader.ts.
7
+ Licensed under the MIT License; the full text ships as
8
+ LICENSES/THINKING-ORBS-MIT.txt. The copy in src/internal/agent-orb.ts keeps each
9
+ dot's lane through the depth sort, so Nadia's striped ribbon holds its stripes.
13
10
 
14
11
  @nadicodeai/ui includes model-maker and model-family marks from the LobeHub icon
15
12
  set, generated from @lobehub/icons-static-svg 1.95.1.
@@ -0,0 +1,54 @@
1
+ /**
2
+ * The stored appearance, reachable from a server. `agent-orb.tsx` is a
3
+ * `"use client"` module, and under React Server Components every export of one
4
+ * becomes a client reference, a re-exported pure function included, which a
5
+ * server caller can only fail to invoke. A product that resolves an Agent's
6
+ * look before it renders the orb (the Portal builds its rows that way) imports
7
+ * the resolver from here; the orb comes from `@nadicodeai/ui/components/agent-orb`,
8
+ * and neither module re-exports the other.
9
+ */
10
+ import type { AgentOrbFigure, AgentOrbForm } from "../internal/agent-orb.js";
11
+ export type { AgentOrbFigure, AgentOrbForm } from "../internal/agent-orb.js";
12
+ /** What Nadia stores for an Agent's look, and reports to the Portal. Both may be absent or unknown. */
13
+ export interface StoredAgentOrbAppearance {
14
+ shape?: string | null;
15
+ color?: string | null;
16
+ }
17
+ /** The seven forms a person may choose, in the order a picker offers them. */
18
+ export declare const agentOrbForms: readonly ["orbit", "ribbon", "lattice", "globe", "network", "braid", "morph"];
19
+ /**
20
+ * The colours a person may choose. Each clears 3:1 against both the white and
21
+ * the black canvas, so a chosen orb stays visible in either theme; giallo does
22
+ * not (1.6:1 on white) and is not offered. Absence of a colour is the default:
23
+ * the orb inherits the text colour.
24
+ */
25
+ export declare const agentOrbColors: readonly ["cobalto", "verde", "rosso", "arancio"];
26
+ export type AgentOrbColor = (typeof agentOrbColors)[number];
27
+ /**
28
+ * The hex each colour is stored as. Nadia keeps an Agent's colour as a CSS
29
+ * value for its own surfaces, so the stored spelling is a value rather than a
30
+ * token reference; `agent-orb-appearance.test.ts` holds this table to the
31
+ * shipped design-system tokens, and the ESLint colour-literal exemption in the
32
+ * root config names this file.
33
+ */
34
+ export declare const agentOrbColorValues: Record<AgentOrbColor, string>;
35
+ /** The design-system token each colour paints with. */
36
+ export declare const agentOrbColorTokens: Record<AgentOrbColor, string>;
37
+ /** The `shape` value a chosen form is stored as. */
38
+ export declare const shapeForOrb: (form: AgentOrbForm) => string;
39
+ /** The form an Agent wears until a person chooses one. */
40
+ export declare const defaultAgentOrbForm: AgentOrbForm;
41
+ export declare const defaultAgentOrbShape: string;
42
+ /**
43
+ * Resolve the stored strings to what `AgentOrb` draws. The root Agent is Nadia
44
+ * and wears her striped ribbon whatever is stored, since her look is fixed. An
45
+ * unknown shape is the default form; an unknown colour is undefined, which
46
+ * leaves the orb the inherited text colour.
47
+ */
48
+ export declare function resolveAgentOrb(stored: StoredAgentOrbAppearance, { root }?: {
49
+ root?: boolean;
50
+ }): {
51
+ form: AgentOrbFigure;
52
+ color: AgentOrbColor | undefined;
53
+ };
54
+ //# sourceMappingURL=agent-orb-appearance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-orb-appearance.d.ts","sourceRoot":"","sources":["../../src/components/agent-orb-appearance.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzE,uGAAuG;AACvG,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,8EAA8E;AAC9E,eAAO,MAAM,aAAa,+EAQkB,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAK7D,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAK7D,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,WAAW,GAAI,MAAM,YAAY,KAAG,MAAuB,CAAC;AAEzE,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,EAAE,YAAsB,CAAC;AACzD,eAAO,MAAM,oBAAoB,EAAE,MAAyC,CAAC;AAsB7E;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,wBAAwB,EAChC,EAAE,IAAY,EAAE,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GACxC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,aAAa,GAAG,SAAS,CAAA;CAAE,CAG5D"}
@@ -0,0 +1,87 @@
1
+ /** The seven forms a person may choose, in the order a picker offers them. */
2
+ export const agentOrbForms = [
3
+ "orbit",
4
+ "ribbon",
5
+ "lattice",
6
+ "globe",
7
+ "network",
8
+ "braid",
9
+ "morph",
10
+ ];
11
+ /**
12
+ * The colours a person may choose. Each clears 3:1 against both the white and
13
+ * the black canvas, so a chosen orb stays visible in either theme; giallo does
14
+ * not (1.6:1 on white) and is not offered. Absence of a colour is the default:
15
+ * the orb inherits the text colour.
16
+ */
17
+ export const agentOrbColors = ["cobalto", "verde", "rosso", "arancio"];
18
+ /**
19
+ * The hex each colour is stored as. Nadia keeps an Agent's colour as a CSS
20
+ * value for its own surfaces, so the stored spelling is a value rather than a
21
+ * token reference; `agent-orb-appearance.test.ts` holds this table to the
22
+ * shipped design-system tokens, and the ESLint colour-literal exemption in the
23
+ * root config names this file.
24
+ */
25
+ export const agentOrbColorValues = {
26
+ cobalto: "#1e3cff",
27
+ verde: "#00a85a",
28
+ rosso: "#d3302f",
29
+ arancio: "#ff5a1f",
30
+ };
31
+ /** The design-system token each colour paints with. */
32
+ export const agentOrbColorTokens = {
33
+ cobalto: "var(--nc-identity-cobalto)",
34
+ verde: "var(--nc-identity-verde)",
35
+ rosso: "var(--nc-identity-rosso)",
36
+ arancio: "var(--nc-identity-arancio)",
37
+ };
38
+ /** The `shape` value a chosen form is stored as. */
39
+ export const shapeForOrb = (form) => `orb:${form}`;
40
+ /** The form an Agent wears until a person chooses one. */
41
+ export const defaultAgentOrbForm = "orbit";
42
+ export const defaultAgentOrbShape = shapeForOrb(defaultAgentOrbForm);
43
+ /**
44
+ * The retired Forma spellings, each carried to one orb so an Agent that chose
45
+ * a form before the orbs keeps a distinct look until someone changes it. The
46
+ * five role names are the launch Agents' own stored spellings.
47
+ */
48
+ const retiredShapes = new Map([
49
+ ["forma:uovo", "orbit"],
50
+ ["forma:pillola", "ribbon"],
51
+ ["forma:esagono", "lattice"],
52
+ ["forma:quadrato", "globe"],
53
+ ["forma:nuvola", "network"],
54
+ ["forma:goccia", "braid"],
55
+ ["forma:triangolo", "morph"],
56
+ ["forma:research", "orbit"],
57
+ ["forma:build", "braid"],
58
+ ["forma:design", "network"],
59
+ ["forma:operate", "globe"],
60
+ ["forma:review", "lattice"],
61
+ ]);
62
+ /**
63
+ * Resolve the stored strings to what `AgentOrb` draws. The root Agent is Nadia
64
+ * and wears her striped ribbon whatever is stored, since her look is fixed. An
65
+ * unknown shape is the default form; an unknown colour is undefined, which
66
+ * leaves the orb the inherited text colour.
67
+ */
68
+ export function resolveAgentOrb(stored, { root = false } = {}) {
69
+ if (root)
70
+ return { form: "nadia", color: undefined };
71
+ return { form: formFor(stored.shape), color: colorFor(stored.color) };
72
+ }
73
+ function formFor(shape) {
74
+ if (!shape)
75
+ return defaultAgentOrbForm;
76
+ // A Map, not an object: the shape is a stored string from a machine, and an
77
+ // object lookup would hand back `toString` or `constructor` for those spellings.
78
+ return (agentOrbForms.find((form) => shape === shapeForOrb(form)) ??
79
+ retiredShapes.get(shape) ??
80
+ defaultAgentOrbForm);
81
+ }
82
+ function colorFor(color) {
83
+ if (!color)
84
+ return undefined;
85
+ const stored = color.toLowerCase();
86
+ return agentOrbColors.find((name) => stored === agentOrbColorValues[name] || stored === name);
87
+ }
@@ -1,10 +1,12 @@
1
1
  import { type CSSProperties } from "react";
2
- import { type AgentOrbForm, type AgentOrbSize } from "../internal/agent-orb.js";
3
- export type { AgentOrbForm, AgentOrbSize } from "../internal/agent-orb.js";
2
+ import { type AgentOrbFigure, type AgentOrbSize } from "../internal/agent-orb.js";
3
+ export type { AgentOrbFigure, AgentOrbForm, AgentOrbSize } from "../internal/agent-orb.js";
4
4
  import type { AgentOrbState } from "../internal/agent-orb-motion.js";
5
5
  export type { AgentOrbState } from "../internal/agent-orb-motion.js";
6
6
  export type AgentOrbProps = {
7
- form: AgentOrbForm;
7
+ /** A chosen form, or `nadia`: her striped ribbon, whose colours are fixed. */
8
+ form: AgentOrbFigure;
9
+ /** The pigment of a chosen form; on Nadia, only her third, white stripe takes it. */
8
10
  color?: CSSProperties["color"];
9
11
  size?: AgentOrbSize;
10
12
  paused?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-orb.d.ts","sourceRoot":"","sources":["../../src/components/agent-orb.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAqB,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AAG5F,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,YAAY,E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EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,CAAC;IAAE,UAAU,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAElF,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,IAAS,EACT,MAAc,EACd,KAAc,EACd,SAAa,EACb,UAAkB,EAClB,KAAK,EACL,SAAS,GACV,EAAE,aAAa,+BAyCf"}
package/dist/index.d.ts CHANGED
@@ -7,7 +7,6 @@ export * from "./components/activity-orb.js";
7
7
  export * from "./components/activity-calendar.js";
8
8
  export * from "./components/agent-card.js";
9
9
  export * from "./components/agent-orb.js";
10
- export * from "./components/agent-visual.js";
11
10
  export * from "./components/alert.js";
12
11
  export * from "./components/alert-dialog.js";
13
12
  export * from "./components/aspect-ratio.js";
@@ -68,7 +67,6 @@ export * from "./components/field.js";
68
67
  export * from "./components/file-type-icon.js";
69
68
  export * from "./components/footer.js";
70
69
  export * from "./components/form.js";
71
- export * from "./components/forma-avatar.js";
72
70
  export * from "./components/glass-control.js";
73
71
  export * from "./components/glyph-spinner.js";
74
72
  export * from "./components/handoff-banner.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC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CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ export * from "./components/activity-orb.js";
7
7
  export * from "./components/activity-calendar.js";
8
8
  export * from "./components/agent-card.js";
9
9
  export * from "./components/agent-orb.js";
10
- export * from "./components/agent-visual.js";
11
10
  export * from "./components/alert.js";
12
11
  export * from "./components/alert-dialog.js";
13
12
  export * from "./components/aspect-ratio.js";
@@ -68,7 +67,6 @@ export * from "./components/field.js";
68
67
  export * from "./components/file-type-icon.js";
69
68
  export * from "./components/footer.js";
70
69
  export * from "./components/form.js";
71
- export * from "./components/forma-avatar.js";
72
70
  export * from "./components/glass-control.js";
73
71
  export * from "./components/glyph-spinner.js";
74
72
  export * from "./components/handoff-banner.js";
@@ -1,7 +1,7 @@
1
- import type { AgentOrbForm } from "./agent-orb.js";
1
+ import type { AgentOrbFigure } from "./agent-orb.js";
2
2
  export type AgentOrbState = "idle" | "working" | "waiting" | "blocked" | "thinking" | "done";
3
- export declare function stateSpeed(state: AgentOrbState, form: AgentOrbForm): number;
4
- export declare function motionPose(form: AgentOrbForm, state: AgentOrbState, age: number): {
3
+ export declare function stateSpeed(state: AgentOrbState, form: AgentOrbFigure): number;
4
+ export declare function motionPose(form: AgentOrbFigure, state: AgentOrbState, age: number): {
5
5
  sx: number;
6
6
  sy: number;
7
7
  x: number;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-orb-motion.d.ts","sourceRoot":"","sources":["../../src/internal/agent-orb-motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAY7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,UAGlE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM;;;;;;;;EA0C/E;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,wBAAwB,EACjC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,KAAK,EAAE,MAAM,GAAG,OAAO,QAgExB"}
1
+ {"version":3,"file":"agent-orb-motion.d.ts","sourceRoot":"","sources":["../../src/internal/agent-orb-motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAa7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,cAAc,UAGpE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM;;;;;;;;EA0CjF;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,wBAAwB,EACjC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,KAAK,EAAE,MAAM,GAAG,OAAO,QAgExB"}
@@ -1,5 +1,6 @@
1
1
  const personalities = {
2
2
  ribbon: { speed: 0.55, tilt: 0.15 },
3
+ nadia: { speed: 0.55, tilt: 0.15 },
3
4
  lattice: { speed: 0.28, tilt: -0.12 },
4
5
  orbit: { speed: 0.7, tilt: 0.2 },
5
6
  globe: { speed: 0.35, tilt: -0.16 },
@@ -1,3 +1,4 @@
1
+ import { type ModeOpts, type OrbFrame } from "thinking-orbs/engine";
1
2
  import { type AgentOrbState } from "./agent-orb-motion.js";
2
3
  declare const agentOrbForms: {
3
4
  readonly orbit: "working";
@@ -9,8 +10,17 @@ declare const agentOrbForms: {
9
10
  readonly morph: "shaping";
10
11
  };
11
12
  export type AgentOrbForm = keyof typeof agentOrbForms;
13
+ /** A chosen form, or Nadia's own ribbon, which nobody chooses. */
14
+ export type AgentOrbFigure = AgentOrbForm | "nadia";
12
15
  export type AgentOrbSize = 20 | 24 | 32 | 40 | 64 | 96 | 160;
13
- export declare function mountAgentOrb(canvas: HTMLCanvasElement, form: AgentOrbForm, size: AgentOrbSize, initiallyPaused: boolean, initialState?: AgentOrbState): {
16
+ /**
17
+ * The vendor's `ribbon` geometry (thinking-orbs 0.3.1, MIT, Jakub Antalik),
18
+ * repeated here only so every dot carries its lane through the depth sort. The
19
+ * engine sorts dots by depth each frame, so colouring by array position makes
20
+ * a stripe jump between lanes as the ribbon turns; the lane is the stable id.
21
+ */
22
+ export declare function stripedRibbonFrame(size: number, t: number, opts: ModeOpts): OrbFrame;
23
+ export declare function mountAgentOrb(canvas: HTMLCanvasElement, form: AgentOrbFigure, size: AgentOrbSize, initiallyPaused: boolean, initialState?: AgentOrbState): {
14
24
  destroy(): void;
15
25
  setPaused(_value: boolean): void;
16
26
  setState(_value: AgentOrbState): void;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-orb.d.ts","sourceRoot":"","sources":["../../src/internal/agent-orb.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAuC,MAAM,oBAAoB,CAAC;AAE7F,QAAA,MAAM,aAAa;;;;;;;;CAQ0B,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,aAAa,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;AAkD7D,wBAAgB,aAAa,CAC3B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,eAAe,EAAE,OAAO,EACxB,YAAY,GAAE,aAAsB;;sBAIO,OAAO;qBAAuB,aAAa;EAqHvF"}
1
+ {"version":3,"file":"agent-orb.d.ts","sourceRoot":"","sources":["../../src/internal/agent-orb.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EAEb,KAAK,QAAQ,EAId,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,aAAa,EAAuC,MAAM,oBAAoB,CAAC;AAE7F,QAAA,MAAM,aAAa;;;;;;;;CAQ0B,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,aAAa,CAAC;AACtD,kEAAkE;AAClE,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;AAmB7D;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAuDpF;AA0DD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,YAAY,EAClB,eAAe,EAAE,OAAO,EACxB,YAAY,GAAE,aAAsB;;sBAIO,OAAO;qBAAuB,aAAa;EA0HvF"}
@@ -1,4 +1,4 @@
1
- import { MODE_FRAMES, resolvePreset } from "thinking-orbs/engine";
1
+ import { finalizeFrame, MODE_FRAMES, makeProj, radiusScale, resolvePreset, } from "thinking-orbs/engine";
2
2
  import { motionPose, paintOrbCue, stateSpeed } from "./agent-orb-motion.js";
3
3
  const agentOrbForms = {
4
4
  orbit: "working",
@@ -9,9 +9,81 @@ const agentOrbForms = {
9
9
  ribbon: "composing",
10
10
  morph: "shaping",
11
11
  };
12
- function paintAgentOrb(context, form, size, seconds, color, state = "idle", age = 0, reduced = false, celebrationColors = [color]) {
13
- const preset = resolvePreset(agentOrbForms[form], size <= 32 ? 20 : 64);
14
- const frame = MODE_FRAMES[preset.mode](size, seconds, preset.opts);
12
+ /**
13
+ * Nadia's four stripes across the ribbon's width, azzurro to rosso. The third
14
+ * is the orb's own pigment, the inherited text colour, so the white of the
15
+ * tricolore stays visible on a white ground as ink.
16
+ */
17
+ const nadiaStripes = ["--nc-identity-azzurro", "--nc-identity-verde", null, "--nc-identity-rosso"];
18
+ /** A stable direction on the unit sphere, the vendor's Fibonacci lattice. */
19
+ function fibonacci(i, n) {
20
+ const y = 1 - (2 * (i + 0.5)) / n;
21
+ const radius = Math.sqrt(1 - y * y);
22
+ const angle = i * Math.PI * (3 - Math.sqrt(5));
23
+ return [radius * Math.cos(angle), y, radius * Math.sin(angle)];
24
+ }
25
+ /**
26
+ * The vendor's `ribbon` geometry (thinking-orbs 0.3.1, MIT, Jakub Antalik),
27
+ * repeated here only so every dot carries its lane through the depth sort. The
28
+ * engine sorts dots by depth each frame, so colouring by array position makes
29
+ * a stripe jump between lanes as the ribbon turns; the lane is the stable id.
30
+ */
31
+ export function stripedRibbonFrame(size, t, opts) {
32
+ const cx = size / 2;
33
+ const radius = (size / 2) * 0.78;
34
+ const spin = opts.spin ?? 1;
35
+ const project = makeProj(t * 0.1 * spin, 0.3, cx, cx, 1);
36
+ const scale = radiusScale(size, opts.rsPow ?? 0.6);
37
+ const dots = [];
38
+ const ghosts = opts.ghostN ?? 150;
39
+ for (let i = 0; i < ghosts; i++) {
40
+ const [gx, gy, gz] = fibonacci(i, ghosts);
41
+ const [x, y, z] = project(gx * radius, gy * radius, gz * radius);
42
+ dots.push({ x, y, z, r: 0.8 * scale, white: 0.78, a: 0.1 + 0.22 * ((z / radius + 1) / 2) });
43
+ }
44
+ const yaw = t * 0.24 * spin;
45
+ const tilt = opts.faceOn ? -0.3 : 0.55 + 0.3 * Math.sin(t * 0.18) * spin;
46
+ const [ax, ay, az] = [Math.cos(yaw), 0, Math.sin(yaw)];
47
+ const [bx, by, bz] = [-az * Math.sin(tilt), Math.cos(tilt), ax * Math.sin(tilt)];
48
+ const [nx, ny, nz] = [ay * bz - az * by, az * bx - ax * bz, ax * by - ay * bx];
49
+ const wobble = opts.wobMul ?? 1;
50
+ const reach = opts.faceOn ? radius / (1 + 0.85 * 0.23 * wobble) : radius;
51
+ const segments = opts.segs ?? 88;
52
+ const lanes = Math.max(1, Math.round((opts.lanes ?? 5) * (opts.bandMul ?? 1)));
53
+ for (let lane = 0; lane < lanes; lane++) {
54
+ const offset = (lane - (lanes - 1) / 2) * 0.075;
55
+ const edge = Math.abs(lane - (lanes - 1) / 2) / Math.max(1, (lanes - 1) / 2);
56
+ for (let step = 0; step < segments; step++) {
57
+ const angle = (step / segments) * 2 * Math.PI;
58
+ const wave = (0.16 * Math.sin(angle * 3 - t * 1.7 + lane * 0.22) +
59
+ 0.07 * Math.sin(angle * 5 + t * 1.1)) *
60
+ wobble;
61
+ const stretch = opts.faceOn ? 1 + wave : 1;
62
+ const lift = opts.faceOn ? offset : offset + wave;
63
+ const px = ax * Math.cos(angle) + bx * Math.sin(angle) + nx * lift;
64
+ const py = ay * Math.cos(angle) + by * Math.sin(angle) + ny * lift;
65
+ const pz = az * Math.cos(angle) + bz * Math.sin(angle) + nz * lift;
66
+ const length = Math.sqrt(px * px + py * py + pz * pz);
67
+ const [x, y, z] = project((px / length) * reach * stretch, (py / length) * reach * stretch, (pz / length) * reach * stretch);
68
+ const depth = (z / radius + 1) / 2;
69
+ dots.push({
70
+ x,
71
+ y,
72
+ z,
73
+ r: ((opts.rBase ?? 1.1) + (opts.rDepth ?? 1.7) * depth) * (1 - 0.25 * edge) * scale,
74
+ white: 0.52 - 0.44 * depth + 0.18 * edge,
75
+ a: 0.4 + 0.6 * depth,
76
+ stripe: Math.min(3, Math.floor((lane / lanes) * 4)),
77
+ });
78
+ }
79
+ }
80
+ return finalizeFrame(dots, [], opts.rMin);
81
+ }
82
+ function paintAgentOrb(context, form, size, seconds, color, state = "idle", age = 0, reduced = false, celebrationColors = [color], stripeColors = [color]) {
83
+ const preset = resolvePreset(agentOrbForms[form === "nadia" ? "ribbon" : form], size <= 32 ? 20 : 64);
84
+ const frame = form === "nadia"
85
+ ? stripedRibbonFrame(size, seconds, preset.opts)
86
+ : MODE_FRAMES[preset.mode](size, seconds, preset.opts);
15
87
  context.clearRect(0, 0, size, size);
16
88
  const pose = motionPose(form, state, reduced ? (state === "done" ? 2 : 0.6) : age);
17
89
  const gestureSeconds = reduced ? 0.8 : age / (state === "done" ? 0.575 : 0.2875);
@@ -38,6 +110,7 @@ function paintAgentOrb(context, form, size, seconds, color, state = "idle", age
38
110
  context.stroke();
39
111
  }
40
112
  for (const dot of frame.dots) {
113
+ context.fillStyle = dot.stripe === undefined ? color : (stripeColors[dot.stripe] ?? color);
41
114
  context.globalAlpha = Math.min(1, Math.max(0, (1 - dot.white) * (dot.a ?? 1) * pose.opacity));
42
115
  context.beginPath();
43
116
  context.arc(...project(dot.x, dot.y), dot.r, 0, Math.PI * 2);
@@ -63,11 +136,12 @@ export function mountAgentOrb(canvas, form, size, initiallyPaused, initialState
63
136
  let ratio = 1;
64
137
  let color = getComputedStyle(canvas).color;
65
138
  let celebrationColors = [color];
139
+ let stripeColors = [color];
66
140
  function paint() {
67
141
  if (!context)
68
142
  return;
69
143
  context.setTransform(ratio, 0, 0, ratio, 0, 0);
70
- paintAgentOrb(context, form, size, seconds, color, state, age, motion.matches, celebrationColors);
144
+ paintAgentOrb(context, form, size, seconds, color, state, age, motion.matches, celebrationColors, stripeColors);
71
145
  }
72
146
  function running() {
73
147
  return (!disposed &&
@@ -110,6 +184,7 @@ export function mountAgentOrb(canvas, form, size, initiallyPaused, initialState
110
184
  const appearance = getComputedStyle(canvas);
111
185
  color = appearance.color;
112
186
  celebrationColors = ["--nc-chart-5", "--nc-chart-6", "--nc-warning", "--nc-chart-4"].map((token) => `color-mix(in oklch, ${appearance.getPropertyValue(token).trim() || color} 75%, white)`);
187
+ stripeColors = nadiaStripes.map((token) => (token && appearance.getPropertyValue(token).trim()) || color);
113
188
  play();
114
189
  }
115
190
  const visibility = new IntersectionObserver(([entry]) => {
package/docs/agent-orb.md CHANGED
@@ -1,11 +1,10 @@
1
1
  # Agent orbs
2
2
 
3
- `AgentOrb` is the abstract Agent identity family requested on 2026-09-19:
4
- seven structures from `thinking-orbs` 0.3.1, each painted in one configurable
5
- colour. These are persistent appearance choices, not activity states. They
6
- apply equally to Nadia and other Agents; this family assigns no face or
7
- special character to Nadia. Existing Forma consumers are not migrated by
8
- this component slice.
3
+ `AgentOrb` is the one Agent identity in every product: seven structures from
4
+ `thinking-orbs` 0.3.1, each painted in one chosen colour, and Nadia's own
5
+ striped ribbon. These are persistent appearance choices, not activity states.
6
+ No other Agent form, avatar or portrait exists; a custom picture a person
7
+ uploads in Nadia is theirs, not an identity this package draws.
9
8
 
10
9
  | Form | Structure | Upstream preset |
11
10
  | --- | --- | --- |
@@ -17,7 +16,40 @@ this component slice.
17
16
  | `braid` | Interwoven strands | `weaving` |
18
17
  | `morph` | Changing geometric contour | `shaping` |
19
18
 
20
- The form does not select a job, tools or runtime status. Do not switch it when
19
+ ## Nadia
20
+
21
+ `form="nadia"` is the ribbon striped along its whole length, across its width:
22
+ azzurro (`--nc-identity-azzurro`), verde, the orb's own pigment, and rosso.
23
+ The third stripe is the white of the tricolore; it takes the inherited text
24
+ colour so it stays visible as ink on a white ground. The stripes are fixed:
25
+ the same four at every size, in both themes and in every state, and nobody
26
+ chooses them. Each dot keeps its lane through the engine's depth sort, so a
27
+ stripe never changes colour as the ribbon turns. Her motion is the ribbon's.
28
+
29
+ ## Stored appearance
30
+
31
+ Nadia stores an Agent's look in its profile and reports it to the Portal on
32
+ every check-in; the Portal renders it and never writes it.
33
+ `@nadicodeai/ui/components/agent-orb-appearance` is the one reading of those
34
+ strings, server-safe so a server can resolve a row before it renders:
35
+
36
+ | Field | Stored as |
37
+ | --- | --- |
38
+ | `shape` | `orb:orbit`, `orb:ribbon`, `orb:lattice`, `orb:globe`, `orb:network`, `orb:braid`, `orb:morph` |
39
+ | `color` | The design system's identity hex of cobalto, verde, rosso or arancio, or null |
40
+
41
+ `resolveAgentOrb(stored, { root })` returns the form and colour to draw. The
42
+ root Agent is Nadia and draws `nadia` whatever is stored. An unknown or empty
43
+ shape draws `orbit`; an unknown or empty colour draws the inherited text
44
+ colour, which is also the default a picker's reset restores. Paint a colour
45
+ with `agentOrbColorTokens[color]`. The four colours clear 3:1 against both the
46
+ white and the black canvas; giallo does not and is not offered. Each retired
47
+ `forma:` spelling resolves to its own orb, so an Agent keeps a distinct look
48
+ until someone changes it.
49
+
50
+ The appearance is a person's choice, never derived: do not infer it from a name,
51
+ an id hash or a role. A machine check-in is not Agent activity, so a surface that
52
+ only knows check-ins draws the orb idle. The form does not select a job, tools or runtime status. Do not switch it when
21
53
  an Agent starts searching or solving. Applications own the persisted form,
22
54
  colour, name and status; names beside avatars provide exact identification.
23
55
 
@@ -26,13 +58,15 @@ colour, name and status; names beside avatars provide exact identification.
26
58
  ```tsx
27
59
  import { AgentOrb } from "@nadicodeai/ui/components/agent-orb";
28
60
 
29
- <AgentOrb form="ribbon" color="var(--nc-identity-cobalto)" size={32} label="Nadia" />;
61
+ <AgentOrb form="ribbon" color="var(--nc-identity-cobalto)" size={32} label="Research" />;
62
+ <AgentOrb form="nadia" size={32} label="Nadia" />;
30
63
  ```
31
64
 
32
65
  `form` is required. `color` accepts one CSS colour, including a customer-chosen
33
66
  colour or a canonical token. Omit it to inherit text colour. This configurable
34
67
  artwork is not a new palette for controls or status. Every particle and line
35
- uses the same pigment; opacity, not another colour, creates depth. Working
68
+ of a chosen form uses the same pigment, and on Nadia each stripe keeps its own;
69
+ opacity, not another colour, creates depth. Working
36
70
  releases occasional coloured flourishes; Done repeats the same arcs,
37
71
  arrowheads, rings and sparkles in a short celebration around
38
72
  that single-colour identity, using the existing chart and warning tokens. Choose a
@@ -73,10 +107,9 @@ No state has an enclosing circle. Keep a nearby status label where exact
73
107
  state identification matters, including reduced motion and compact sizes.
74
108
  Reduced motion holds the state pose and skips the celebration.
75
109
 
76
- The [Portal Agent workspace](../../../apps/portal/src/components/agent-workspace/agent-workspace.tsx)
77
- uses the shared component. Inspect its Agent list and detail views in the
78
- running local Portal for compact and full-size appearances. Development
79
- profiles provide example orb choices; their preview edits do not change
80
- stored Agent records.
110
+ In the Portal, [`agent-identity.tsx`](../../../apps/portal/src/components/agent-identity.tsx)
111
+ draws every Agent, in its lists, Agent workspace and the sign-in, sign-up and
112
+ Get Nadia pages. Inspect them in the running local Portal for compact and
113
+ full-size appearances.
81
114
 
82
115
  [Upstream library and presets](https://libraries.dev/orbs), MIT licensed.
package/docs/contract.md CHANGED
@@ -152,7 +152,7 @@ states to the orb.
152
152
 
153
153
  ## Admission Rules
154
154
 
155
- Assistant conversation and runtime APIs enter through `@nadicodeai/ui/agents`; Agent identity enters through `@nadicodeai/ui/components/agent-card`, `@nadicodeai/ui/components/agent-orb`, `@nadicodeai/ui/components/agent-visual`, and the Forma avatars in `@nadicodeai/ui/components/forma-avatar` (owned by [`forma-avatar.md`](forma-avatar.md)). The consuming application still constructs the runtime and owns transport, persistence, permissions, tools, approvals, and failure policy. Shared non-Agent product components (a shell, a settings surface, a generic section, a diff, or a file preview) are admitted only with a named consuming surface landing in the same change. App-bespoke UI and behavior (window chrome, PTY/xterm embeds, queues, approvals, and persistence) stay in the consuming app; they never become package abstractions. A component left unconsumed after its target migration ships gets removed.
155
+ Assistant conversation and runtime APIs enter through `@nadicodeai/ui/agents`; Agent identity enters through `@nadicodeai/ui/components/agent-orb`, its stored-appearance resolver `@nadicodeai/ui/components/agent-orb-appearance` (both owned by [`agent-orb.md`](agent-orb.md)), and `@nadicodeai/ui/components/agent-card`. The consuming application still constructs the runtime and owns transport, persistence, permissions, tools, approvals, and failure policy. Shared non-Agent product components (a shell, a settings surface, a generic section, a diff, or a file preview) are admitted only with a named consuming surface landing in the same change. App-bespoke UI and behavior (window chrome, PTY/xterm embeds, queues, approvals, and persistence) stay in the consuming app; they never become package abstractions. A component left unconsumed after its target migration ships gets removed.
156
156
 
157
157
  ### Placement
158
158
 
@@ -166,34 +166,13 @@ where [`apps/nadia/docs/entry-screen.md`](../../../apps/nadia/docs/entry-screen.
166
166
  owns their contract. `packages/ui/tests/guards/product-placement.test.ts`
167
167
  refuses a product's name in either package.
168
168
 
169
- ### Abstract Agent identities
170
-
171
- `AgentOrb` is the seven-form, single-colour abstract family in
172
- [`agent-orb.md`](agent-orb.md), exposed through
173
- `@nadicodeai/ui/components/agent-orb`. Its consuming validation surface is
174
- `examples/agent-orbs`: the built component at detail, menu and conversation
175
- sizes, with independently editable colours. The application stores appearance;
176
- upstream activity names select geometry only and never infer an Agent role or
177
- change its identity with runtime work. Customer-selected artwork colours are
178
- inputs, not component palette literals or interface colour roles.
179
-
180
- ### Agent identity presentation
181
-
182
- The visual system (the closed recipes, motion, fallbacks, and licensing) is
183
- owned by [`agent-visual.md`](agent-visual.md). What this contract adds is the
184
- package shape: `AgentVisual` exposes only a recipe (`general`, `reasoning`,
185
- `coordination`, `communication`, `execution`) and a presentation (`registry`,
186
- `card`, `detail`); it is decorative by default, and a meaningful selectable
187
- image opts into `decorative={false}` with a `label`. `AgentCard` composes the
188
- fundamental `Card` with explicit `visual`, `name`, `job`, `status`, `meta`,
189
- and `action` slots and owns presentation only; when it is the page identity,
190
- the `name` slot carries the page's `h1`. The app owns Agent data, recipe
191
- assignment, status grammar, routing, and actions; it assigns a recipe
192
- explicitly and never infers or randomizes one from a free-form role.
193
- When the product chooses a card presentation, use `AgentCard`; registry cells,
194
- membership rows, and compact detail headers compose the shared `AgentVisual`
195
- within the structure their reading task requires. An Agent's presence does not
196
- by itself choose a card layout. There is no `AgentGlyph`, `AgentRow`, or
169
+ ### Agent identity
170
+
171
+ `AgentOrb` is the only Agent identity the package ships, and
172
+ [`agent-orb.md`](agent-orb.md) owns its rules. `AgentCard` composes the
173
+ fundamental `Card` with explicit `visual`, `name`, `job`, `status`, `meta`, and
174
+ `action` slots and owns presentation only; when it is the page identity, the
175
+ `name` slot carries the page's `h1`. There is no `AgentGlyph`, `AgentRow`, or
197
176
  product-domain `agent` object prop in the shared package.
198
177
 
199
178
  - **Standard components, not app-owned product features.** This package ships primitives, standard UI components, assistant-ui compositions, brand adapters, React adapters, reusable sections, and presentational product components. It must not ship app-specific feature/use-case screens or names such as operator-login, portal activation, customer credential control, or customer management. Domain registries, command search providers, and chart dashboards bind app data and routes in the app; that binding is not a reason to copy reusable presentation. Portal's DataTable owns its Next.js query and registry protocol once, while consuming the shared UI foundation. Product-independent compositions belong here with a real consumer. The source-backed `chart-*` and `kpi-card` package surface is the plan-approved exception per issue #166; apps select charts and bind their titles, data, and navigation. A chart is named by the card title above it and navigated through Recharts' own accessibility layer; the kit ships no hidden table twin, because a component whose complete value is already available in visible text or `aria-valuetext` does not add a redundant table.