@actioneer/ads 0.3.1 → 0.5.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.
- package/components/ai-elements/agent-trace.d.ts +87 -0
- package/components/ai-elements/agent-trace.js +180 -0
- package/components/ai-elements/chain-of-thought.js +63 -63
- package/components/ai-elements/index.d.ts +1 -0
- package/components/ai-elements/tool.js +3 -3
- package/components/ai-elements/voice.d.ts +24 -14
- package/components/ai-elements/voice.js +237 -670
- package/components/assistant-ui/composer-harness.js +5 -4
- package/components/chart.js +305 -306
- package/components/drawer.d.ts +15 -0
- package/components/empty-state.d.ts +40 -0
- package/components/empty-state.js +168 -26
- package/components/index.js +328 -322
- package/lib/icons.js +2 -2
- package/llms.txt +13 -4
- package/manifest.json +87 -8
- package/package.json +1 -1
- package/styles.css +89 -53
- package/theme.css +86 -50
- package/components/agents-ui/agent-audio-visualizer-aura.d.ts +0 -11
- package/components/agents-ui/agent-audio-visualizer-aura.js +0 -277
- package/components/agents-ui/agent-audio-visualizer-wave.d.ts +0 -12
- package/components/agents-ui/agent-audio-visualizer-wave.js +0 -203
- package/components/agents-ui/react-shader-toy.d.ts +0 -87
- package/components/agents-ui/react-shader-toy.js +0 -531
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
/**
|
|
3
|
-
* Voice — the
|
|
3
|
+
* Voice — the ADS voice orb and its session controls.
|
|
4
4
|
*
|
|
5
|
-
* `Voice` renders
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* `Voice` renders one volume-reactive WebGL orb, driven entirely by props so
|
|
6
|
+
* consumers keep a transport-neutral integration surface. Its colourway is set
|
|
7
|
+
* by `palette`; every palette is chromatic — the orb never renders greyscale —
|
|
8
|
+
* and an optional `seed` gives each agent/voice a distinct hue through the
|
|
9
|
+
* `identity` palette, so a list of voices reads as distinct rather than repeated.
|
|
8
10
|
*
|
|
9
11
|
* The controls (VoiceControl + friends) are standalone and props-driven — no
|
|
10
12
|
* assistant-ui runtime — so they compose with any transport.
|
|
11
13
|
*
|
|
12
|
-
* Reduced motion:
|
|
13
|
-
*
|
|
14
|
+
* Reduced motion: the shader freezes its noise field and drops volume
|
|
15
|
+
* reactivity, keeping the static coloured orb.
|
|
14
16
|
*/
|
|
15
17
|
export type VoiceState = "idle" | "connecting" | "listening" | "thinking" | "speaking" | "muted" | "asleep";
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
+
/** The orb is the sole visual; `variant` is retained for API stability. */
|
|
19
|
+
export type VoiceVariant = "orb";
|
|
20
|
+
export declare const VOICE_PALETTES: readonly ["default", "identity", "blue", "violet", "emerald", "sunset"];
|
|
18
21
|
export type VoicePalette = (typeof VOICE_PALETTES)[number];
|
|
19
22
|
/** Backwards-compatible name for the palette type originally used by Orb. */
|
|
20
23
|
export type VoiceOrbPalette = VoicePalette;
|
|
21
|
-
export declare const VOICE_VARIANTS: readonly ["orb"
|
|
24
|
+
export declare const VOICE_VARIANTS: readonly ["orb"];
|
|
22
25
|
export declare const VOICE_STATES: readonly ["idle", "connecting", "listening", "thinking", "speaking", "muted", "asleep"];
|
|
23
26
|
export interface VoiceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
24
27
|
/** Reactive animation state. */
|
|
25
28
|
state?: VoiceState;
|
|
26
|
-
/** Visualizer style. */
|
|
29
|
+
/** Visualizer style. The orb is the only visual. */
|
|
27
30
|
variant?: VoiceVariant;
|
|
28
31
|
className?: string;
|
|
29
|
-
/** Normalized audio energy 0–1
|
|
32
|
+
/** Normalized audio energy 0–1. Default 0. */
|
|
30
33
|
volume?: number;
|
|
31
|
-
/**
|
|
34
|
+
/** Shader colorway. Every palette is chromatic. Default "default". */
|
|
32
35
|
palette?: VoiceOrbPalette;
|
|
33
36
|
/**
|
|
34
|
-
* Optional identity.
|
|
35
|
-
*
|
|
37
|
+
* Optional identity. With `palette="identity"`, the seed becomes a distinct
|
|
38
|
+
* hue per subject, so a list of agents/voices reads as distinct rather than
|
|
36
39
|
* repeated. Omit for the generic orb.
|
|
37
40
|
*/
|
|
38
41
|
seed?: string | number;
|
|
42
|
+
/**
|
|
43
|
+
* Fill the box. By default the orb disc occupies ~42% of its box (a legacy
|
|
44
|
+
* proportion left from when a glow halo filled the surround); at avatar sizes
|
|
45
|
+
* that leaves the disc tiny inside empty padding. Set `fill` so the disc
|
|
46
|
+
* fills its box — the correct choice for any small/avatar-sized orb.
|
|
47
|
+
*/
|
|
48
|
+
fill?: boolean;
|
|
39
49
|
/** Fired once on mount (API parity with the old Persona `onReady`). */
|
|
40
50
|
onReady?: () => void;
|
|
41
51
|
"aria-label"?: string;
|