Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(deps): update assistant-ui packages to latest minor versions

Steven Enamakelbb354fcd8d20
diff --git a/app/package.json b/app/package.json
index 81bc642b03..192b46a58f 100644
--- a/app/package.json
+++ b/app/package.json
@@ -73,8 +73,8 @@
"knip:production": "knip --config knip.json --production"
},
"dependencies": {
- "@assistant-ui/core": "^0.3.15",
- "@assistant-ui/react": "^0.15.16",
+ "@assistant-ui/core": "^0.3.20",
+ "@assistant-ui/react": "^0.15.21",
"@assistant-ui/react-lexical": "^0.2.10",
"@assistant-ui/react-markdown": "^0.14.12",
"@base-ui/react": "^1.7.0",
diff --git a/app/src/components/assistant-ui/elements/streaming-text.tsx b/app/src/components/assistant-ui/elements/streaming-text.tsx
new file mode 100644
index 0000000000..d862e134cc
--- /dev/null
+++ b/app/src/components/assistant-ui/elements/streaming-text.tsx
@@ -0,0 +1,67 @@
+'use client';
+
+/**
+ * Vendored from the assistant-ui `elements-streaming-text` registry item
+ * (https://r.assistant-ui.com/styles/base-nova/elements-streaming-text.json).
+ * Changes from upstream:
+ * - `cn` import path (`@/components/assistant-ui/lib/utils`).
+ */
+import { cn } from '@/components/assistant-ui/lib/utils';
+import { type ComponentProps, useMemo } from 'react';
+
+import { take } from '../utils/range';
+
+export interface Segment {
+ text: string;
+ mono?: boolean;
+}
+
+export function StreamingText({
+ segments,
+ count,
+ streaming,
+ className,
+ ...props
+}: Omit<ComponentProps<'p'>, 'children' | 'segments' | 'count' | 'streaming'> & {
+ segments: Segment[];
+ count: number;
+ streaming: boolean;
+}) {
+ const words = useMemo(
+ () =>
+ segments.flatMap((segment) =>
+ segment.text.split(' ').map((word) => ({ word, mono: segment.mono ?? false }))
+ ),
+ [segments]
+ );
+ const shown = take(words, count);
+
+ return (
+ <p
+ data-slot="streaming-text"
+ className={cn('min-h-[8.5rem] max-w-sm text-sm leading-relaxed text-pretty', className)}
+ {...props}>
+ {shown.map(({ word, mono: isMono }, i) => {
+ const fresh = streaming && shown.length - 1 - i < 2;
+ return (
+ <span key={i} className="fade-in animate-in fill-mode-both duration-500 motion-reduce:animate-none">
+ <span
+ className={cn(
+ 'transition-colors duration-700 motion-reduce:transition-none',
+ fresh && 'text-blue-500 dark:text-blue-400',
+ isMono && 'bg-foreground/[0.06] rounded-md px-1.5 py-0.5 font-mono text-[0.85em]'
+ )}>
+ {word}
+ </span>{' '}
+ </span>
+ );
+ })}
+ {streaming && shown.length > 0 && (
+ <span
+ aria-hidden
+ className="-mb-0.5 ml-0.5 inline-block h-4 w-0.5 animate-pulse rounded-full bg-blue-500 dark:bg-blue-400"
+ />
+ )}
+ </p>
+ );
+}
diff --git a/app/src/components/assistant-ui/elements/typing-indicator.tsx b/app/src/components/assistant-ui/elements/typing-indicator.tsx
new file mode 100644
index 0000000000..4fbb835fe1
--- /dev/null
+++ b/app/src/components/assistant-ui/elements/typing-indicator.tsx
@@ -0,0 +1,60 @@
+'use client';
+
+/**
+ * Vendored from the assistant-ui `elements-typing-indicator` registry item
+ * (https://r.assistant-ui.com/styles/base-nova/elements-typing-indicator.json).
+ * Changes from upstream:
+ * - `cn` import path (`@/components/assistant-ui/lib/utils`).
+ * - `aria-label` is a `label` prop with an English default, for `useT()`.
+ */
+import { cn } from '@/components/assistant-ui/lib/utils';
+import type { ComponentProps } from 'react';
+
+import { paper } from './surfaces';
+
+const DOT_DELAYS = ['-0.32s', '-0.16s', '0s'];
+
+export function TypingIndicator({
+ variant = 'bubble',
+ label = 'Assistant is typing',
+ className,
+ ...props
+}: Omit<ComponentProps<'div'>, 'children' | 'variant' | 'role' | 'aria-label'> & {
+ variant?: 'bubble' | 'bare';
+ label?: string;
+}) {
+ const dots = DOT_DELAYS.map((delay) => (
+ <span
+ key={delay}
+ aria-hidden
+ className="bg-foreground/40 size-1.5 animate-bounce rounded-full motion-reduce:animate-none"
+ style={{ animationDelay: delay, animationDuration: '1.1s' }}
+ />
+ ));
+
+ if (variant === 'bare') {
+ return (
+ <div
+ data-slot="typing-indicator"
+ data-variant="bare"
+ role="status"
+ aria-label={label}
+ className={cn('flex gap-1', className)}
+ {...props}>
+ {dots}
+ </div>
+ );
+ }
+
+ return (
+ <div
+ data-slot="typing-indicator"
+ data-variant="bubble"
+ className={cn(paper, 'w-fit rounded-full px-4 py-3.5', className)}
+ {...props}>
+ <div role="status" aria-label={label} className="flex gap-1">
+ {dots}
+ </div>
+ </div>
+ );
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 16c3f1ef0f..b984c9691c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -33,17 +33,17 @@ importers:
app:
dependencies:
'@assistant-ui/core':
- specifier: ^0.3.15
+ specifier: ^0.3.20
'@assistant-ui/react':
- specifier: ^0.15.16
+ specifier: ^0.15.21
'@assistant-ui/react-lexical':
specifier: ^0.2.10
'@assistant-ui/react-markdown':
specifier: ^0.14.12
'@base-ui/react':
specifier: ^1.7.0
@@ -326,7 +326,7 @@ importers:
version: 28.1.0(@noble/[email protected])
knip:
specifier: ^6.3.1
- version: 6.6.2(@emnapi/[email protected])(@emnapi/[email protected])
+ version: 6.6.2(@emnapi/[email protected])(@emnapi/[email protected])
postcss:
specifier: ^8.5.6
version: 8.5.26
@@ -387,15 +387,14 @@ packages:
'@asamuzakjp/[email protected]':
resolution: {integrity: sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==}
- '@assistant-ui/[email protected]':
- resolution: {integrity: sha512-pCeVhMmzK4xFbahtRtvjlGXDxycsvl1plgiD0M5ZyABm+QxINGnBO5GEz1hqDHQVjKlCIJDNj15PlFSkuFnidA==}
+ '@assistant-ui/[email protected]':
+ resolution: {integrity: sha512-gSY7kI5crnbaXFaF2tObBVekXvQCpBz0D8CqzEkDJrKOwe57gn2K52qBr2hL0o36Ssyg0DmiEAi0LjPG5ZSGqQ==}
peerDependencies:
- '@assistant-ui/store': ^0.3.0
- '@assistant-ui/tap': ^0.9.0
+ '@assistant-ui/store': ^0.3.14
+ '@assistant-ui/tap': ^0.9.18
'@types/react': '*'
- assistant-cloud: ^0.1.31
+ assistant-cloud: ^0.2.1
react: ^18 || ^19
- zustand: ^5.0.11
peerDependenciesMeta:
'@types/react':
optional: true
@@ -403,8 +402,6 @@ packages:
optional: true
react:
optional: true
- zustand:
- optional: true
'@assistant-ui/[email protected]':
resolution: {integrity: sha512-xXCcMp4Gm/SjORYMCqLIBD+gbf4Oo3bfg7u4lNt1enf721kqnc/H1PIhjkFvJZHBSqe4GTN115CpvSlUs+cmUA==}
@@ -429,8 +426,8 @@ packages:
'@types/react':
optional: true
- '@assistant-ui/[email protected]':
- resolution: {integrity: sha512-+2BO6npVEXdViNWTyH3XddVXHo7SOcXliM8btrXGzH6PHuTtn3CYL7DCQ5ZXVRHB9kYPBbbMPURVu93jg9qIwg==}
+ '@assistant-ui/[email protected]':
+ resolution: {integrity: sha512-5VID3r2YpYFbx6LLfyOSWwRVf4WOJXYsfSN/C67sbCsJsqqBbxeQpn4MB9g73HcyriBkRwqvHY5XXCguyNqP6Q==}
peerDependencies:
'@types/react': '*'
'@types/react-dom': '*'
@@ -442,10 +439,10 @@ packages:
'@types/react-dom':
optional: true
- '@assistant-ui/[email protected]':
- resolution: {integrity: sha512-QSFgodFt/daEjyaY09WdahNewsGPtAeY+DkSb2LM2rPN6634h13R1vJQvCtyWK5YsI5WXgzgbsctzgpIQLU0qw==}
+ '@assistant-ui/[email protected]':
+ resolution: {integrity: sha512-GqHYBD4TfSBTynyBYs2DDnyskfTVNtKHNaXws6dG5//18fb5PJyTYhXjkOSvDqF+dKX5rlOk9Bbd7G0CfJ+xkQ==}
peerDependencies:
- '@assistant-ui/tap': ^0.9.12
+ '@assistant-ui/tap': ^0.9.18
'@types/react': '*'
react: ^18 || ^19
peerDependenciesMeta:
@@ -454,8 +451,8 @@ packages:
react:
optional: true
- '@assistant-ui/[email protected]':
- resolution: {integrity: sha512-L/ZyXLQb51/d+/5xlXaP1197PF94EO/Ji+/CBWTjuEbsU1+8dzXCHVNO9GCFQvyG02OiOVitfbRksipMVzdrnA==}
+ '@assistant-ui/[email protected]':
+ resolution: {integrity: sha512-JowBf+JbzQRarun3DWy/4H6XZ7v/1fJ154By00Kn7b30thmlA/bh2lOPa9hPPeYaMcsTiYYYu6yWEM+AFMvdIw==}
peerDependencies:
'@types/react': '*'
react: ^18 || ^19
@@ -3429,11 +3426,25 @@ packages:
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-lrH9USOoNaAWAAbujeHa/PEiWoqNQHjIPIAeeA3y3GUXOdlmTjIyR/7GbEZBKbHhm1Lyt7aAYKvdxHFkhuEbJw==}
+ resolution: {integrity: sha512-rScC4VNkUMPnRogMM92mkS87f0qf3Vtc+V7gfaliA0biD64slfvvsmbges3CupoVzJ8Pc4iMP1YhIa+oIjzpzg==}
+ peerDependencies:
+ '@opentelemetry/api': ^1.9.0
+ '@opentelemetry/exporter-trace-otlp-http': '>=0.200.0'
+ '@opentelemetry/sdk-trace-base': ^2.1.0
+ ai: ^6.0.0 || ^7.0.0
+ peerDependenciesMeta:
+ '@opentelemetry/api':
+ optional: true
+ '@opentelemetry/exporter-trace-otlp-http':
+ optional: true
+ '@opentelemetry/sdk-trace-base':
+ optional: true
+ ai:
+ optional: true
- resolution: {integrity: sha512-Ad28saCwQxqaB69w4WNaS3uW5OW5BgTYnzTfbgFnz1CPXZjcWFsMrHhcJUpR4+lfYPTNal0oHEb47VUZH4Zz1g==}
+ resolution: {integrity: sha512-418FRutG6g6WUd8EckGG+ZVOn/rmgop36oyzAMk1bRqktZOlY2RdtBl0yoUpDM/IDPWVNe7baYtSKN3UvjQzoA==}
peerDependencies:
ioredis: ^5.10.1 || ^6.0.0
redis: ^5.12.1
@@ -6207,8 +6218,8 @@ packages:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
- resolution: {integrity: sha512-IFUSMjElIp8q46wUU5HViHNEqoDWRlCzqqThQmhOLimuXPe/QC6Jr/AQ+BKxSYziQdNXUpapBq4Ir/t6dS0Ldg==}
+ resolution: {integrity: sha512-q5oK9CnNBlsCaYSpMjTkveO9BiQU25PHeMykRyh59hlSkr0g0SSeL7P+dtTljKwNt0+m1qWD8982xUcN5jmPPQ==}
resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}
@@ -7136,8 +7147,8 @@ packages:
resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}
- resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}
+ resolution: {integrity: sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==}
resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}
@@ -7203,26 +7214,25 @@ snapshots:
'@asamuzakjp/[email protected]': {}
dependencies:
- '@assistant-ui/store': 0.3.10(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
- '@assistant-ui/tap': 0.9.14(@types/[email protected])([email protected])
- assistant-stream: 0.3.39
+ '@assistant-ui/store': 0.3.14(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
+ '@assistant-ui/tap': 0.9.18(@types/[email protected])([email protected])
+ assistant-stream: 0.3.44
nanoid: 6.0.1
optionalDependencies:
'@types/react': 19.2.14
- assistant-cloud: 0.1.41
+ assistant-cloud: 0.2.2
react: 19.2.5
transitivePeerDependencies:
- ioredis
- redis
dependencies:
- '@assistant-ui/store': 0.3.10(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
+ '@assistant-ui/store': 0.3.14(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
'@lexical/utils': 0.49.0([email protected])
lexical: 0.49.0([email protected])
@@ -7234,9 +7244,9 @@ snapshots:
- typescript
- yjs
dependencies:
'@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
classnames: 2.5.1
@@ -7249,45 +7259,41 @@ snapshots:
- react-dom
- supports-color
dependencies:
- '@assistant-ui/store': 0.3.10(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
- '@assistant-ui/tap': 0.9.14(@types/[email protected])([email protected])
- '@radix-ui/primitive': 1.1.7
- '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
- '@radix-ui/react-use-escape-keydown': 1.1.5(@types/[email protected])([email protected])
- assistant-cloud: 0.1.41
- assistant-stream: 0.3.39
+ '@assistant-ui/store': 0.3.14(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])
+ '@assistant-ui/tap': 0.9.18(@types/[email protected])([email protected])
+ assistant-cloud: 0.2.2
+ assistant-stream: 0.3.44
react: 19.2.5
react-dom: 19.2.5([email protected])
react-textarea-autosize: 8.5.9(@types/[email protected])([email protected])
- safe-content-frame: 0.0.27
- zod: 4.4.3
+ safe-content-frame: 0.0.31
+ zod: 4.6.5
optionalDependencies:
'@types/react': 19.2.14
'@types/react-dom': 19.2.3(@types/[email protected])
transitivePeerDependencies:
+ - '@opentelemetry/api'
+ - '@opentelemetry/exporter-trace-otlp-http'
+ - '@opentelemetry/sdk-trace-base'
+ - ai
- immer
- ioredis
- redis
- use-sync-external-store
dependencies:
- '@assistant-ui/tap': 0.9.14(@types/[email protected])([email protected])
+ '@assistant-ui/tap': 0.9.18(@types/[email protected])([email protected])
optionalDependencies:
'@types/react': 19.2.14
react: 19.2.5
optionalDependencies:
'@types/react': 19.2.14
react: 19.2.5
@@ -8261,9 +8267,9 @@ snapshots:
'@oxc-resolver/[email protected]':
optional: true
- '@oxc-resolver/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
+ '@oxc-resolver/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
dependencies:
- '@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])
+ '@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])
transitivePeerDependencies:
- '@emnapi/core'
- '@emnapi/runtime'
@@ -10306,16 +10312,17 @@ snapshots:
dependencies:
- assistant-stream: 0.3.39
+ assistant-stream: 0.3.44
transitivePeerDependencies:
- ioredis
- redis
dependencies:
'@standard-schema/spec': 1.1.0
+ '@types/json-schema': 7.0.15
nanoid: 6.0.1
secure-json-parse: 4.1.0
@@ -12286,7 +12293,7 @@ snapshots:
dependencies:
json-buffer: 3.0.1
dependencies:
fdir: 6.5.0([email protected])
formatly: 0.3.0
@@ -12294,7 +12301,7 @@ snapshots:
jiti: 2.6.1
minimist: 1.2.8
oxc-parser: 0.127.0
- oxc-resolver: 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])
+ oxc-resolver: 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])
picomatch: 4.0.4
smol-toml: 1.6.1
strip-json-comments: 5.0.3
@@ -13098,7 +13105,7 @@ snapshots:
'@oxc-parser/binding-win32-ia32-msvc': 0.127.0
'@oxc-parser/binding-win32-x64-msvc': 0.127.0
optionalDependencies:
'@oxc-resolver/binding-android-arm-eabi': 11.19.1
'@oxc-resolver/binding-android-arm64': 11.19.1
@@ -13116,7 +13123,7 @@ snapshots:
'@oxc-resolver/binding-linux-x64-gnu': 11.19.1
'@oxc-resolver/binding-linux-x64-musl': 11.19.1
'@oxc-resolver/binding-openharmony-arm64': 11.19.1
- '@oxc-resolver/binding-wasm32-wasi': 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])
+ '@oxc-resolver/binding-wasm32-wasi': 11.19.1(@emnapi/[email protected])(@emnapi/[email protected])
'@oxc-resolver/binding-win32-arm64-msvc': 11.19.1
'@oxc-resolver/binding-win32-ia32-msvc': 11.19.1
'@oxc-resolver/binding-win32-x64-msvc': 11.19.1
@@ -13871,7 +13878,7 @@ snapshots:
dependencies:
@@ -14885,7 +14892,7 @@ snapshots:
dependencies: