The open-source agent harness - the runtime layer that turns an LLM into a working agent.
feat: show Created by column on agents and schedules (#681)
Govinda Vashishtha629b6e9024f0
diff --git a/.changeset/agent-sessions-infinite-scroll.md b/.changeset/agent-sessions-infinite-scroll.mdnew file mode 100644index 000000000..214d11958--- /dev/null+++ b/.changeset/agent-sessions-infinite-scroll.md@@ -0,0 +1,5 @@+---+"@truefoundry/trueforge-ui": patch+---++Paginate the Agent Sessions list on scroll instead of a "Load more" button, showing a skeleton row while the next page loads.diff --git a/.changeset/agents-library-table-scroll.md b/.changeset/agents-library-table-scroll.mdnew file mode 100644index 000000000..8f39b9974--- /dev/null+++ b/.changeset/agents-library-table-scroll.md@@ -0,0 +1,5 @@+---+'@truefoundry/trueforge-ui': patch+---++Fix Agents library table scrolling when rows exceed the viewportdiff --git a/.changeset/created-by-column.md b/.changeset/created-by-column.mdnew file mode 100644index 000000000..f3fd9aff9--- /dev/null+++ b/.changeset/created-by-column.md@@ -0,0 +1,6 @@+---+"@truefoundry/trueforge-ui": patch+"@truefoundry/trueforge": patch+---++Show Created by (avatar + name) on Agents and Schedules tables when creator info is present.diff --git a/.changeset/popover-select-portal.md b/.changeset/popover-select-portal.mdnew file mode 100644index 000000000..7a085d3f2--- /dev/null+++ b/.changeset/popover-select-portal.md@@ -0,0 +1,5 @@+---+"@truefoundry/trueforge-ui": patch+---++Portal PopoverSelect menus so table page-size and other selects are not clipped by overflow parents.diff --git a/packages/frontend/package.json b/packages/frontend/package.jsonindex b686314a6..f7c4c3e66 100644--- a/packages/frontend/package.json+++ b/packages/frontend/package.json@@ -26,7 +26,7 @@"@assistant-ui/core": "0.2.22","@assistant-ui/react": "0.14.27","@assistant-ui/store": "0.2.21",- "@truefoundry/assistant-ui-runtime": "0.1.34",+ "@truefoundry/assistant-ui-runtime": "0.1.36","@truefoundry/trueforge-sdk": "workspace:*","@truefoundry/trueforge-ui": "workspace:*","monaco-editor": "^0.52.0",diff --git a/packages/trueforge-ui/package.json b/packages/trueforge-ui/package.jsonindex 52dbbd06d..c5f9f7eba 100644--- a/packages/trueforge-ui/package.json+++ b/packages/trueforge-ui/package.json@@ -95,7 +95,7 @@"@openuidev/react-headless": "^0.9.4","@openuidev/react-lang": "^0.2.9","@openuidev/react-ui": "^0.13.2",- "@truefoundry/assistant-ui-runtime": "0.1.35",+ "@truefoundry/assistant-ui-runtime": "0.1.36","@truefoundry/trueforge-sdk": "workspace:*","chart.js": "^4.5.1","clsx": "^2.1.1",diff --git a/packages/trueforge-ui/src/atoms/AgentsLibrary.tsx b/packages/trueforge-ui/src/atoms/AgentsLibrary.tsxindex edf7ea494..086b103cf 100644--- a/packages/trueforge-ui/src/atoms/AgentsLibrary.tsx+++ b/packages/trueforge-ui/src/atoms/AgentsLibrary.tsx@@ -10,8 +10,10 @@ import { useOptionalAgentSessionsServer, useOptionalScheduleServer } from '../seimport { libraryAgentId, useShellMode } from '../server/ShellModeContext.js';import type { AgentLibraryEntry, AgentSpec, Schedule } from '../server/types.js';import { useSlot } from '../theme/SlotsProvider.js';+import { hasCreatedBySubject } from '../utils/createdBySubject.js';import { replaceScheduleShareSearch } from '../utils/scheduleShareUrl.js';import { AgentOverflowMenu } from './AgentOverflowMenu.js';+import { CreatedByCell } from './CreatedByCell.js';import { EmptyScreen, EmptyScreenQueryHighlight } from './EmptyScreen.js';import { mountName } from './lib/mountName.js';import { useSearchAgentsList } from './lib/useSearchAgentsList.js';@@ -29,6 +31,8 @@ export type AgentsLibraryProps = {export type AgentScheduleSummary = {count: number;pausedCount: number;+ activeNames: string[];+ pausedNames: string[];};export type AgentLibraryRowProps = {@@ -38,6 +42,7 @@ export type AgentLibraryRowProps = {canManageAgent?: boolean;canDeleteAgent?: boolean;canManageSchedules: boolean;+ showCreatedBy?: boolean;scheduleSummary?: AgentScheduleSummary | null;onOpenSchedules?: () => void;onCreateSchedule?: () => void;@@ -82,6 +87,19 @@ function AgentSchedulesEmptyState({);}+function scheduleNamesTooltip(names: readonly string[]) {+ return (+ <span className="flex flex-col text-left">+ {names.map((name, index) => (+ <span key={name}>+ {name}+ {index < names.length - 1 ? ',' : ''}+ </span>+ ))}+ </span>+ );+}+function AgentSchedulesBadge({summary,agentName,@@ -108,17 +126,21 @@ function AgentSchedulesBadge({onClick={onOpen}>{activeCount > 0 ? (- <span className="inline-flex items-center gap-1 rounded-md border border-emerald-600/30 bg-emerald-500/10 px-2 py-0.5 text-xs font-medium text-emerald-700 dark:border-emerald-400/35 dark:bg-emerald-500/15 dark:text-emerald-300">- <Icon name="calendar-clock" className="size-3.5 shrink-0" />- <span>{activeCount} Active</span>- </span>+ <Tooltip content={scheduleNamesTooltip(summary.activeNames)} className="whitespace-normal">+ <span className="inline-flex items-center gap-1 rounded-md border border-emerald-600/30 bg-emerald-500/10 px-2 py-0.5 text-xs font-medium text-emerald-700 dark:border-emerald-400/35 dark:bg-emerald-500/15 dark:text-emerald-300">+ <Icon name="calendar-clock" className="size-3.5 shrink-0" />+ <span>{activeCount} Active</span>+ </span>+ </Tooltip>) : null}{pausedCount > 0 ? (- <span className="inline-flex items-center gap-1 rounded-md border border-amber-600/30 bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-800 dark:border-amber-400/35 dark:bg-amber-500/15 dark:text-amber-300">- {activeCount === 0 ? <Icon name="calendar-clock" className="size-3.5 shrink-0" /> : null}- <span>{pausedCount} Paused</span>- <Icon name="triangle-exclamation" className="size-3.5 shrink-0" />- </span>+ <Tooltip content={scheduleNamesTooltip(summary.pausedNames)} className="whitespace-normal">+ <span className="inline-flex items-center gap-1 rounded-md border border-amber-600/30 bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-800 dark:border-amber-400/35 dark:bg-amber-500/15 dark:text-amber-300">+ {activeCount === 0 ? <Icon name="calendar-clock" className="size-3.5 shrink-0" /> : null}+ <span>{pausedCount} Paused</span>+ <Icon name="triangle-exclamation" className="size-3.5 shrink-0" />+ </span>+ </Tooltip>) : null}</button>);@@ -131,6 +153,7 @@ export function AgentLibraryRow({canManageAgent = true,canDeleteAgent = true,canManageSchedules,+ showCreatedBy = false,scheduleSummary,onOpenSchedules,onCreateSchedule,@@ -208,6 +231,11 @@ export function AgentLibraryRow({</span>)}</TableCell>+ {showCreatedBy ? (+ <TableCell>+ <CreatedByCell subject={agent.createdBySubject} />+ </TableCell>+ ) : null}{scheduleSummary !== undefined ? (<TableCell>{scheduleSummary != null && scheduleSummary.count > 0 ? (@@ -255,10 +283,13 @@ function summarizeSchedulesByAgent(schedules: readonly Schedule[]): Map<string,const map = new Map<string, AgentScheduleSummary>();for (const schedule of schedules) {const id = schedule.agentId;- const prev = map.get(id) ?? { count: 0, pausedCount: 0 };- const next = {+ const prev = map.get(id) ?? { count: 0, pausedCount: 0, activeNames: [], pausedNames: [] };+ const isPaused = schedule.status === 'paused';+ const next: AgentScheduleSummary = {count: prev.count + 1,- pausedCount: prev.pausedCount + (schedule.status === 'paused' ? 1 : 0),+ pausedCount: prev.pausedCount + (isPaused ? 1 : 0),+ activeNames: isPaused ? prev.activeNames : [...prev.activeNames, schedule.name],+ pausedNames: isPaused ? [...prev.pausedNames, schedule.name] : prev.pausedNames,};map.set(id, next);if (schedule.agentName != null && schedule.agentName !== '' && schedule.agentName !== id) {@@ -332,6 +363,7 @@ export function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps) {query,refreshKey: agentsListEpoch,});+ const showCreatedByColumn = hasCreatedBySubject(agents);const permissionAgentIds = open ? agents.map(libraryAgentId) : [];const { allows } = useResourcePermissions({resourceType: 'agent',@@ -416,7 +448,8 @@ export function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps) {/><div className="bg-secondary-bg/40 flex min-h-0 flex-1 flex-col">- <div ref={listRef} className="flex min-h-0 flex-1 flex-col overflow-y-auto p-4" aria-label="Agents">+ {/* Not flex-col: overflow-hidden table chrome would clip instead of letting this scroll. */}+ <div ref={listRef} className="min-h-0 flex-1 overflow-y-auto p-4" aria-label="Agents">{isInitialLoading ? (<div className="flex flex-col gap-2 p-1" role="status" aria-label="Loading agents">{Array.from({ length: 6 }, (_, i) => (@@ -446,6 +479,7 @@ export function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps) {<TableRow className="hover:bg-transparent"><TableHead>Agent name</TableHead><TableHead>Configuration</TableHead>+ {showCreatedByColumn ? <TableHead>Created by</TableHead> : null}{showSchedulesColumn ? <TableHead className="w-[14rem]">Schedules</TableHead> : null}<TableHead className="w-px"><span className="sr-only">Actions</span>@@ -460,7 +494,9 @@ export function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps) {const summary = showSchedulesColumn? (scheduleByAgent?.get(id) ??scheduleByAgent?.get(agent.name) ??- (scheduleByAgent == null ? null : { count: 0, pausedCount: 0 }))+ (scheduleByAgent == null+ ? null+ : { count: 0, pausedCount: 0, activeNames: [], pausedNames: [] })): undefined;return (<SlottedAgentLibraryRow@@ -471,6 +507,7 @@ export function AgentsLibrary({ onSelectAgent }: AgentsLibraryProps) {canManageAgent={allows(id, 'MANAGE')}canDeleteAgent={allows(id, 'DELETE')}canManageSchedules={canOpenAgentSchedules}+ showCreatedBy={showCreatedByColumn}{...(summary !== undefined ? { scheduleSummary: summary } : {})}{...(canOpenAgentSchedules && agentId != null? {diff --git a/packages/trueforge-ui/src/atoms/CreatedByCell.tsx b/packages/trueforge-ui/src/atoms/CreatedByCell.tsxnew file mode 100644index 000000000..b936498f1--- /dev/null+++ b/packages/trueforge-ui/src/atoms/CreatedByCell.tsx@@ -0,0 +1,30 @@+'use client';++import type { CreatedBySubject } from '../server/types.js';+import { createdByLabel } from '../utils/createdBySubject.js';+import { getUserInitials } from './UserAvatar.js';+import { Avatar, AvatarFallback } from './primitives/Avatar.js';+import { Tooltip } from './primitives/Tooltip.js';++export type CreatedByCellProps = {+ subject: CreatedBySubject | undefined;+};++/** Avatar + truncated label for a Created-by table cell. */+export function CreatedByCell({ subject }: CreatedByCellProps) {+ if (subject == null) {+ return <span className="text-text-secondary text-sm">—</span>;+ }+ const label = createdByLabel(subject);+ const initials = getUserInitials(label) || '?';+ return (+ <Tooltip content={label}>+ <span className="flex min-w-0 max-w-[14rem] items-center gap-2">+ <Avatar size="sm" aria-hidden>+ <AvatarFallback>{initials}</AvatarFallback>+ </Avatar>+ <span className="text-text-secondary truncate text-sm">{label}</span>+ </span>+ </Tooltip>+ );+}diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsxindex 504d1514e..843618d03 100644--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessions.tsx@@ -20,6 +20,8 @@ import { sessionIsCreateAgent } from '../lib/sessionCreateAgent.js';import { Skeleton } from '../primitives/Skeleton.js';import type { AgentSessionsProps } from './types.js';+const LOAD_MORE_ROOT_MARGIN = '96px';+function sessionTitle(entry: Pick<SessionListEntry, 'title'>): string {const title = entry.title?.trim();return title != null && title.length > 0 ? title : 'Untitled session';@@ -56,8 +58,12 @@ export function AgentSessions({ agentId, startTimestamp, endTimestamp, shareViewconst [nextPageToken, setNextPageToken] = useState<string | undefined>();const [listLoading, setListLoading] = useState(true);const [listLoadingMore, setListLoadingMore] = useState(false);+ const [listLoadMoreFailed, setListLoadMoreFailed] = useState(false);const [listFailed, setListFailed] = useState(false);const listRequestIdRef = useRef(0);+ const loadMoreInflightRef = useRef(false);+ const [listEl, setListEl] = useState<HTMLDivElement | null>(null);+ const [sentinelEl, setSentinelEl] = useState<HTMLDivElement | null>(null);const [detailEvents, setDetailEvents] = useState<SessionEventItem[]>();const [detailSession, setDetailSession] = useState<Session>();const [detailLoading, setDetailLoading] = useState(false);@@ -77,8 +83,11 @@ export function AgentSessions({ agentId, startTimestamp, endTimestamp, shareViewuseEffect(() => {const requestId = ++listRequestIdRef.current;let cancelled = false;+ loadMoreInflightRef.current = false;+ setNextPageToken(undefined);setListLoading(true);setListLoadingMore(false);+ setListLoadMoreFailed(false);setListFailed(false);void sessionsServer.listSessions(listRequest)@@ -103,20 +112,40 @@ export function AgentSessions({ agentId, startTimestamp, endTimestamp, shareView}, [listRequest, sessionsServer]);const loadMore = useCallback(async () => {- if (nextPageToken == null || listLoadingMore) return;+ // A ref, not `listLoadingMore`: the observer can fire twice before a re-render.+ if (listLoading || nextPageToken == null || loadMoreInflightRef.current) return;const requestId = listRequestIdRef.current;+ loadMoreInflightRef.current = true;setListLoadingMore(true);+ setListLoadMoreFailed(false);try {const page = await sessionsServer.listSessions({ ...listRequest, pageToken: nextPageToken });if (listRequestIdRef.current !== requestId) return;setEntries(current => [...current, ...page.data]);setNextPageToken(page.nextPageToken);} catch {- // Keep the current page and token visible so the user can retry.+ if (listRequestIdRef.current === requestId) setListLoadMoreFailed(true);} finally {- if (listRequestIdRef.current === requestId) setListLoadingMore(false);+ if (listRequestIdRef.current === requestId) {+ loadMoreInflightRef.current = false;+ setListLoadingMore(false);+ }}- }, [listLoadingMore, listRequest, nextPageToken, sessionsServer]);+ }, [listLoading, listRequest, nextPageToken, sessionsServer]);++ // `entries.length` re-arms the observer: an already-intersecting sentinel emits no new entry.+ useEffect(() => {+ if (listLoading || nextPageToken == null || listEl == null || sentinelEl == null) return;++ const observer = new IntersectionObserver(+ observed => {+ if (observed.some(entry => entry.isIntersecting)) void loadMore();+ },+ { root: listEl, rootMargin: LOAD_MORE_ROOT_MARGIN },+ );+ observer.observe(sentinelEl);+ return () => observer.disconnect();+ }, [entries.length, listEl, listLoading, loadMore, nextPageToken, sentinelEl]);useEffect(() => {if (selectedSessionId == null || selectedSessionId.length === 0) {@@ -238,7 +267,7 @@ export function AgentSessions({ agentId, startTimestamp, endTimestamp, shareView><Panel id="agent-sessions-list" defaultSize="35%" minSize="20%" maxSize="50%"><aside className="flex h-full min-h-0 w-full flex-col bg-sidebar-bg">- <div className="scrollbar-none min-h-0 flex-1 overflow-y-auto">+ <div ref={setListEl} className="scrollbar-none min-h-0 flex-1 overflow-y-auto">{listLoading ? (<div className="space-y-2 p-3" role="status" aria-label="Loading sessions">{['a', 'b', 'c'].map(key => (@@ -261,20 +290,23 @@ export function AgentSessions({ agentId, startTimestamp, endTimestamp, shareView/>)))}- </div>- {nextPageToken != null && !listLoading ? (- <div className="shrink-0 border-t border-border p-3">- <button- type="button"- disabled={listLoadingMore}- onClick={() => void loadMore()}- className="h-8 w-full rounded-md border border-border text-xs font-medium text-text-primary hover:bg-ghost-button-hover disabled:opacity-60"- >- {listLoadingMore ? 'Loading…' : 'Load more'}- </button>- </div>- ) : null}+ {nextPageToken != null && !listLoading && !listFailed ? (+ <div ref={setSentinelEl} className="px-3 py-2">+ {listLoadingMore ? (+ <Skeleton className="h-16 rounded-md" role="status" aria-label="Loading more sessions" />+ ) : listLoadMoreFailed ? (+ <button+ type="button"+ className="h-8 w-full rounded-md border border-border text-xs font-medium text-text-primary hover:bg-ghost-button-hover"+ onClick={() => void loadMore()}+ >+ Retry loading sessions+ </button>+ ) : null}+ </div>+ ) : null}+ </div></aside></Panel>diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionsFilters.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionsFilters.tsxindex 840048b72..aa2a15ef0 100644--- a/packages/trueforge-ui/src/atoms/agent-details/AgentSessionsFilters.tsx+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentSessionsFilters.tsx@@ -136,7 +136,7 @@ export function AgentSessionsFilters({<Icon name="chevron-down" className="size-4 shrink-0" /></button>{menuOpen ? (- <div className={auiSelectMenuClass('right-0 flex max-h-none overflow-y-visible p-0')}>+ <div className={auiSelectMenuClass('absolute top-full right-0 mt-1 flex max-h-none overflow-y-visible p-0')}>{customPickerOpen ? (<div className="flex w-64 min-w-0 flex-col gap-2 border-r border-border p-3"><div className="text-sm font-medium text-text-primary">Select Time Range</div>diff --git a/packages/trueforge-ui/src/atoms/lib/selectClasses.ts b/packages/trueforge-ui/src/atoms/lib/selectClasses.tsindex 84f6636a0..54b58bd5b 100644--- a/packages/trueforge-ui/src/atoms/lib/selectClasses.ts+++ b/packages/trueforge-ui/src/atoms/lib/selectClasses.ts@@ -19,9 +19,10 @@ export function auiSelectPrefixTriggerClass(className?: string): string {);}+/** Visual chrome only — callers add positioning (`absolute top-full mt-1` or fixed portal coords). */export function auiSelectMenuClass(className?: string): string {return cn(- 'bg-card-bg text-text-primary absolute top-full z-50 mt-1 max-h-64 overflow-y-auto rounded-md border border-border p-1 shadow-md',+ 'bg-card-bg text-text-primary z-50 max-h-64 overflow-y-auto rounded-md border border-border p-1 shadow-md',className,);}diff --git a/packages/trueforge-ui/src/atoms/primitives/PopoverSelect.tsx b/packages/trueforge-ui/src/atoms/primitives/PopoverSelect.tsxindex 23193a870..eda73744e 100644--- a/packages/trueforge-ui/src/atoms/primitives/PopoverSelect.tsx+++ b/packages/trueforge-ui/src/atoms/primitives/PopoverSelect.tsx@@ -1,6 +1,7 @@'use client';-import { useEffect, useId, useRef, useState, type ReactNode } from 'react';+import { useEffect, useId, useLayoutEffect, useRef, useState, type ReactNode } from 'react';+import { createPortal } from 'react-dom';import { Icon } from '../../icons/Icon.js';import { cn } from '../lib/cn.js';@@ -10,6 +11,7 @@ import {auiSelectPrefixTriggerClass,auiSelectTriggerClass,} from '../lib/selectClasses.js';+import { themePortalRoot } from '../lib/themePortalRoot.js';export type PopoverSelectOption<T extends string> = {value: T;@@ -48,27 +50,65 @@ export type PopoverSelectProps<T extends string> = CommonPopoverSelectProps<T> &export function PopoverSelect<T extends string>(props: PopoverSelectProps<T>) {const [open, setOpen] = useState(false);+ const [pos, setPos] = useState<{ top: number; left: number; width: number } | null>(null);const rootRef = useRef<HTMLDivElement>(null);const triggerRef = useRef<HTMLButtonElement>(null);+ const menuRef = useRef<HTMLDivElement>(null);const listboxRef = useRef<HTMLDivElement>(null);+ const focusedOpenRef = useRef(false);const listboxId = useId();+ const menuPlacement = props.menuPlacement ?? 'bottom';++ useLayoutEffect(() => {+ if (!open) {+ setPos(null);+ return;+ }++ const update = () => {+ const el = triggerRef.current;+ if (!el) return;+ const rect = el.getBoundingClientRect();+ setPos({+ top: menuPlacement === 'top' ? rect.top - 4 : rect.bottom + 4,+ left: rect.left,+ width: rect.width,+ });+ };++ update();+ window.addEventListener('scroll', update, true);+ window.addEventListener('resize', update);+ return () => {+ window.removeEventListener('scroll', update, true);+ window.removeEventListener('resize', update);+ };+ }, [open, menuPlacement]);useEffect(() => {if (!open) return;const handlePointerDown = (event: MouseEvent) => {- if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);+ if (!(event.target instanceof Node)) return;+ if (rootRef.current?.contains(event.target)) return;+ if (menuRef.current?.contains(event.target)) return;+ setOpen(false);};document.addEventListener('mousedown', handlePointerDown);return () => document.removeEventListener('mousedown', handlePointerDown);}, [open]);useEffect(() => {- if (!open) return;+ if (!open) {+ focusedOpenRef.current = false;+ return;+ }+ if (pos == null || focusedOpenRef.current) return;const selected = listboxRef.current?.querySelector<HTMLElement>('[role="option"][aria-selected="true"]');const first = listboxRef.current?.querySelector<HTMLElement>('[role="option"]:not([aria-disabled="true"])');(selected ?? first)?.focus();- }, [open]);+ focusedOpenRef.current = true;+ }, [open, pos]);useEffect(() => {if (!open) return;@@ -128,7 +168,56 @@ export function PopoverSelect<T extends string>(props: PopoverSelectProps<T>) {triggerRef.current?.focus();};- const menuPlacement = props.menuPlacement ?? 'bottom';+ const menu =+ open && pos != null+ ? createPortal(+ <div+ ref={menuRef}+ className={cn(auiSelectMenuClass('fixed z-[200]'), props.menuClassName)}+ style={{+ top: pos.top,+ left: pos.left,+ width: pos.width,+ transform: menuPlacement === 'top' ? 'translateY(-100%)' : undefined,+ }}+ onMouseDown={event => event.stopPropagation()}+ >+ <div+ ref={listboxRef}+ id={listboxId}+ role="listbox"+ aria-label={props['aria-label']}+ aria-multiselectable={props.multiple || undefined}+ >+ {props.options.length === 0+ ? props.emptyContent+ : props.options.map(option => {+ const selected = isSelected(option.value);+ return (+ <button+ key={option.value}+ type="button"+ role="option"+ aria-selected={selected}+ aria-disabled={option.disabled || undefined}+ disabled={option.disabled}+ className={auiSelectOptionClass()}+ onClick={() => select(option)}+ >+ <span className="min-w-0 flex-1 truncate">{option.label}</span>+ <Icon+ name="check"+ className={cn('ml-auto size-4 shrink-0', selected ? 'opacity-100' : 'opacity-0')}+ />+ </button>+ );+ })}+ </div>+ {props.footer}+ </div>,+ themePortalRoot(rootRef.current),+ )+ : null;return (<div ref={rootRef} className={cn('relative', props.className)}>@@ -166,49 +255,7 @@ export function PopoverSelect<T extends string>(props: PopoverSelectProps<T>) {</>)}</button>-- {open ? (- <div- className={cn(- auiSelectMenuClass('left-0 min-w-full'),- menuPlacement === 'top' && 'top-auto bottom-full mt-0 mb-1',- props.menuClassName,- )}- >- <div- ref={listboxRef}- id={listboxId}- role="listbox"- aria-label={props['aria-label']}- aria-multiselectable={props.multiple || undefined}- >- {props.options.length === 0- ? props.emptyContent- : props.options.map(option => {- const selected = isSelected(option.value);- return (- <button- key={option.value}- type="button"- role="option"- aria-selected={selected}- aria-disabled={option.disabled || undefined}- disabled={option.disabled}- className={auiSelectOptionClass()}- onClick={() => select(option)}- >- <span className="min-w-0 flex-1 truncate">{option.label}</span>- <Icon- name="check"- className={cn('ml-auto size-4 shrink-0', selected ? 'opacity-100' : 'opacity-0')}- />- </button>- );- })}- </div>- {props.footer}- </div>- ) : null}+ {menu}</div>);}diff --git a/packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx b/packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsxindex 9016f0a15..a37157945 100644--- a/packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx+++ b/packages/trueforge-ui/src/atoms/schedules/SchedulesPage.tsx@@ -9,7 +9,9 @@ import { useScheduleServer, useServer } from '../../server/ServerContext.js';import { libraryAgentId } from '../../server/ShellModeContext.js';import type { Schedule, ScheduleRun, ScheduleStatus } from '../../server/types.js';import { useSlot } from '../../theme/SlotsProvider.js';+import { hasCreatedBySubject } from '../../utils/createdBySubject.js';import { readScheduleShareSearch, replaceScheduleShareSearch } from '../../utils/scheduleShareUrl.js';+import { CreatedByCell } from '../CreatedByCell.js';import { EmptyScreen } from '../EmptyScreen.js';import { auiButtonClass } from '../lib/buttonClasses.js';import { cn } from '../lib/cn.js';@@ -346,6 +348,8 @@ export function SchedulesPage({ agentId }: SchedulesPageProps) {});}, [schedules, nameQuery, statusFilter]);+ // Key off page data, not client filters — filtering must not toggle the column.+ const showCreatedByColumn = hasCreatedBySubject(schedules);const hasPageNav = prevTokenStack.length > 0 || nextPageToken != null;const handleTogglePause = async (schedule: Schedule) => {@@ -492,6 +496,7 @@ export function SchedulesPage({ agentId }: SchedulesPageProps) {<TableRow className="hover:bg-transparent"><TableHead>Name</TableHead><TableHead>Agent</TableHead>+ {showCreatedByColumn ? <TableHead>Created by</TableHead> : null}<TableHead>Frequency</TableHead><TableHead>Status</TableHead><TableHead>Last 5 runs</TableHead>@@ -510,6 +515,11 @@ export function SchedulesPage({ agentId }: SchedulesPageProps) {<span className="text-left !no-underline">{schedule.name}</span></TableCell><TableCell>{agentLabel}</TableCell>+ {showCreatedByColumn ? (+ <TableCell>+ <CreatedByCell subject={schedule.createdBySubject} />+ </TableCell>+ ) : null}<TableCell>{cadence}</TableCell><TableCell><ScheduleStatusBadge status={schedule.status} />diff --git a/packages/trueforge-ui/src/index.ts b/packages/trueforge-ui/src/index.tsindex 46cbd05f6..80dbe7347 100644--- a/packages/trueforge-ui/src/index.ts+++ b/packages/trueforge-ui/src/index.ts@@ -368,6 +368,7 @@ export type {CreateSessionRequest,CreateSkillRequest,CreateSkillRequestBase,+ CreatedBySubject,DefinedSkill,GithubSkill,ImportGithubSkillRequest,diff --git a/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/builderServer.ts b/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/builderServer.tsindex ba0bf6397..c3a3d0ee9 100644--- a/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/builderServer.ts+++ b/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/builderServer.ts@@ -57,6 +57,7 @@ function toLibraryEntry(agent: TrueForgeApi.Agent): AgentLibraryEntry {name: agent.name,agentId: agent.id,agentSpec: toUiAgentSpec(agent.manifest),+ createdBySubject: agent.createdBySubject,};}diff --git a/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/schedules/scheduleServer.ts b/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/schedules/scheduleServer.tsindex ea84df791..d80d9ad49 100644--- a/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/schedules/scheduleServer.ts+++ b/packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/schedules/scheduleServer.ts@@ -68,6 +68,7 @@ function toUiSchedule(wire: TrueForgeApi.Schedule, index: AgentIndex): Scheduletimezone: wire.manifest.timezone ?? 'UTC',status: wireStatus(wire.manifest),lastRunAt: null,+ createdBySubject: wire.createdBySubject,};}diff --git a/packages/trueforge-ui/src/server/types.ts b/packages/trueforge-ui/src/server/types.tsindex bd0dc00bb..3d539bb9d 100644--- a/packages/trueforge-ui/src/server/types.ts+++ b/packages/trueforge-ui/src/server/types.ts@@ -59,6 +59,7 @@ export type {CreateSessionRequest,CreateSkillRequest,CreateSkillRequestBase,+ CreatedBySubject,DefinedSkill,GithubSkill,ImportGithubSkillRequest,diff --git a/packages/trueforge-ui/src/utils/createdBySubject.ts b/packages/trueforge-ui/src/utils/createdBySubject.tsnew file mode 100644index 000000000..dd7cd5a40--- /dev/null+++ b/packages/trueforge-ui/src/utils/createdBySubject.ts@@ -0,0 +1,10 @@+import type { CreatedBySubject } from '../server/types.js';++/** Prefer display name; fall back to id when the host left the name empty. */+export function createdByLabel(subject: CreatedBySubject): string {+ return subject.subjectDisplayName || subject.subjectId;+}++export function hasCreatedBySubject(rows: readonly { createdBySubject?: CreatedBySubject | undefined }[]): boolean {+ return rows.some(row => row.createdBySubject != null);+}diff --git a/packages/trueforge-ui/test/atoms/AgentDetailsPage.test.tsx b/packages/trueforge-ui/test/atoms/AgentDetailsPage.test.tsxindex 05a4edc79..150eddc0a 100644--- a/packages/trueforge-ui/test/atoms/AgentDetailsPage.test.tsx+++ b/packages/trueforge-ui/test/atoms/AgentDetailsPage.test.tsx@@ -20,7 +20,53 @@ import type {import { SlotsProvider, type SlotOverrides } from '@/theme/SlotsProvider.js';import { createMockAgentUIServer, createMockScheduleServer } from '../server/mockServer.js';+const intersectionObservers: IntersectionObserverMock[] = [];++class IntersectionObserverMock implements IntersectionObserver {+ readonly root = null;+ readonly rootMargin = '';+ readonly thresholds: readonly number[] = [];+ active = false;++ constructor(readonly callback: IntersectionObserverCallback) {+ intersectionObservers.push(this);+ }++ observe(): void {+ this.active = true;+ }+ unobserve(): void {+ this.active = false;+ }+ disconnect(): void {+ this.active = false;+ }+ takeRecords(): IntersectionObserverEntry[] {+ return [];+ }+}++/** Report every live sentinel as visible, as scrolling the list to the bottom would. */+function scrollListToBottom() {+ const rect = new DOMRect(0, 0, 320, 64);+ const entry: IntersectionObserverEntry = {+ boundingClientRect: rect,+ intersectionRatio: 1,+ intersectionRect: rect,+ isIntersecting: true,+ rootBounds: null,+ target: document.createElement('div'),+ time: 0,+ };+ act(() => {+ for (const observer of intersectionObservers) {+ if (observer.active) observer.callback([entry], observer);+ }+ });+}+beforeAll(() => {+ vi.stubGlobal('IntersectionObserver', IntersectionObserverMock);HTMLDialogElement.prototype.showModal = function showModal() {this.setAttribute('open', '');};@@ -140,6 +186,7 @@ function renderPage({describe('AgentDetailsPage', () => {afterEach(() => {window.history.replaceState(null, '', '/');+ intersectionObservers.length = 0;});it('loads Overview and renders agent details', async () => {@@ -343,6 +390,72 @@ describe('AgentDetailsPage', () => {expect(screen.queryByText('Release notes draft')).not.toBeInTheDocument();});+ it('does not paginate with the previous filter page token', async () => {+ const second = deferred<{ data: SessionListEntry[] }>();+ const listSessions = vi.fn((request?: { agentId?: string; pageToken?: string }) =>+ request?.agentId === 'agent-1'+ ? Promise.resolve({ data: sessionRows, nextPageToken: 'agent-1-next' })+ : second.promise,+ );+ const server = createMockAgentUIServer({+ sessions: {+ getAgent: vi.fn(async () => detail),+ getCodeSnippets: vi.fn(async () => snippets),+ listSessions,+ listSessionEvents: vi.fn(async () => ({ data: [] })),+ },+ });+ const ui = (agentId: string) => (+ <SlotsProvider>+ <ServerProvider server={server}>+ <ShellModeProvider>+ <AgentSessions agentId={agentId} />+ </ShellModeProvider>+ </ServerProvider>+ </SlotsProvider>+ );+ const view = render(ui('agent-1'));+ expect(await screen.findByText('Release notes draft')).toBeInTheDocument();++ view.rerender(ui('agent-2'));+ scrollListToBottom();++ expect(listSessions).toHaveBeenCalledTimes(2);+ expect(listSessions).not.toHaveBeenCalledWith(expect.objectContaining({ pageToken: 'agent-1-next' }));++ await act(async () => {+ second.resolve({ data: [] });+ });+ });++ it('loads the next page when the list is scrolled to the bottom', async () => {+ const nextPage = deferred<{ data: SessionListEntry[] }>();+ const listSessions = vi.fn((request?: { pageToken?: string }) =>+ request?.pageToken == null+ ? Promise.resolve({ data: sessionRows, nextPageToken: 'next-page' })+ : nextPage.promise,+ );+ renderPage({ listSessions });+ await screen.findByText('release-notes-writer');+ fireEvent.click(screen.getByRole('tab', { name: 'Sessions' }));+ expect(await screen.findByText('Release notes draft')).toBeInTheDocument();+ expect(screen.queryByRole('status', { name: 'Loading more sessions' })).not.toBeInTheDocument();++ scrollListToBottom();++ await waitFor(() => expect(listSessions).toHaveBeenCalledTimes(2));+ expect(listSessions).toHaveBeenLastCalledWith(expect.objectContaining({ pageToken: 'next-page' }));+ expect(screen.getByRole('status', { name: 'Loading more sessions' })).toBeInTheDocument();++ await act(async () => {+ nextPage.resolve({+ data: sessionRows.map(row => ({ ...row, id: 'sess-2', title: 'Second page session' })),+ });+ });+ expect(screen.getByText('Second page session')).toBeInTheDocument();+ expect(screen.queryByRole('status', { name: 'Loading more sessions' })).not.toBeInTheDocument();+ });+it('keeps loaded rows visible when loading another page fails', async () => {const listSessions = vi.fn(async (request?: { pageToken?: string }) => {if (request?.pageToken != null) throw new Error('network error');@@ -353,11 +466,13 @@ describe('AgentDetailsPage', () => {fireEvent.click(screen.getByRole('tab', { name: 'Sessions' }));expect(await screen.findByText('Release notes draft')).toBeInTheDocument();- fireEvent.click(screen.getByRole('button', { name: 'Load more' }));+ scrollListToBottom();await waitFor(() => expect(listSessions).toHaveBeenCalledTimes(2));expect(screen.getByText('Release notes draft')).toBeInTheDocument();expect(screen.queryByText('Sessions could not be loaded.')).not.toBeInTheDocument();- expect(screen.getByRole('button', { name: 'Load more' })).toBeEnabled();++ fireEvent.click(screen.getByRole('button', { name: 'Retry loading sessions' }));+ await waitFor(() => expect(listSessions).toHaveBeenCalledTimes(3));});it('opens the Sessions tab and selected session from the share URL', async () => {diff --git a/packages/trueforge-ui/test/atoms/AgentsLibrary.test.tsx b/packages/trueforge-ui/test/atoms/AgentsLibrary.test.tsxindex e63c05bd2..3c28edcd6 100644--- a/packages/trueforge-ui/test/atoms/AgentsLibrary.test.tsx+++ b/packages/trueforge-ui/test/atoms/AgentsLibrary.test.tsx@@ -41,6 +41,11 @@ function mockServer(skills?: Array<{ id: string; name: string }>;mcpServers?: Array<{ id: string; name: string }>;};+ createdBySubject?: {+ subjectId: string;+ subjectType: string;+ subjectDisplayName: string;+ };}> = [{ name: 'alpha-agent', agentId: 'alpha-agent' }],): AgentUIServer {return createMockAgentUIServer({@@ -536,6 +541,15 @@ describe('AgentsLibraryButton', () => {expect(badge).toHaveTextContent('1 Active');expect(badge).toHaveTextContent('1 Paused');expect(badge).toHaveAccessibleName('1 active, 1 paused schedules for alpha-agent');++ fireEvent.mouseEnter(screen.getByText('1 Active').parentElement!);+ expect(await screen.findByRole('tooltip')).toHaveTextContent('job-b');+ fireEvent.mouseLeave(screen.getByText('1 Active').parentElement!);++ fireEvent.mouseEnter(screen.getByText('1 Paused').parentElement!);+ expect(await screen.findByRole('tooltip')).toHaveTextContent('job-a');+ fireEvent.mouseLeave(screen.getByText('1 Paused').parentElement!);+const addSchedule = screen.getByRole('button', { name: 'Add schedule for beta-agent' });expect(addSchedule).toHaveTextContent('Schedule');@@ -589,4 +603,31 @@ describe('AgentsLibraryButton', () => {resolveSchedules({ data: [] });expect(await screen.findByRole('button', { name: 'Add schedule for alpha-agent' })).toBeInTheDocument();});++ it('shows Created by when agents include createdBySubject', async () => {+ const server = mockServer([+ {+ name: 'alpha-agent',+ agentId: 'alpha-agent',+ createdBySubject: {+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ },+ },+ ]);+ renderLibrary(<LibraryHarness />, { server });+ fireEvent.click(screen.getByRole('button', { name: 'Open library' }));++ expect(await screen.findByRole('columnheader', { name: 'Created by' })).toBeInTheDocument();+ expect(screen.getByText('[email protected]')).toBeInTheDocument();+ expect(document.querySelector('[data-slot="avatar-fallback"]')).toHaveTextContent('AL');+ });++ it('hides Created by when no agent has createdBySubject', async () => {+ renderLibrary(<LibraryHarness />, { server: mockServer() });+ fireEvent.click(screen.getByRole('button', { name: 'Open library' }));+ await screen.findByRole('button', { name: 'Try agent alpha-agent' });+ expect(screen.queryByRole('columnheader', { name: 'Created by' })).not.toBeInTheDocument();+ });});diff --git a/packages/trueforge-ui/test/atoms/CreatedByCell.test.tsx b/packages/trueforge-ui/test/atoms/CreatedByCell.test.tsxnew file mode 100644index 000000000..3ddb2cc99--- /dev/null+++ b/packages/trueforge-ui/test/atoms/CreatedByCell.test.tsx@@ -0,0 +1,26 @@+import { render, screen } from '@testing-library/react';+import { describe, expect, it } from 'vitest';++import { CreatedByCell } from '@/atoms/CreatedByCell.js';++describe('CreatedByCell', () => {+ it('renders a dash when subject is missing', () => {+ render(<CreatedByCell subject={undefined} />);+ expect(screen.getByText('—')).toBeInTheDocument();+ });++ it('renders initials avatar and display name', () => {+ const { container } = render(+ <CreatedByCell+ subject={{+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ }}+ />,+ );+ expect(screen.getByText('[email protected]')).toBeInTheDocument();+ expect(container.querySelector('[data-slot="avatar"]')).toBeInTheDocument();+ expect(container.querySelector('[data-slot="avatar-fallback"]')).toHaveTextContent('AL');+ });+});diff --git a/packages/trueforge-ui/test/atoms/primitives/PopoverSelect.test.tsx b/packages/trueforge-ui/test/atoms/primitives/PopoverSelect.test.tsxindex 368924e6c..8e83a9107 100644--- a/packages/trueforge-ui/test/atoms/primitives/PopoverSelect.test.tsx+++ b/packages/trueforge-ui/test/atoms/primitives/PopoverSelect.test.tsx@@ -83,6 +83,49 @@ describe('PopoverSelect', () => {fireEvent.click(screen.getByRole('button', { name: 'Timezone' }));- expect(screen.getByRole('listbox').parentElement).toHaveClass('bottom-full', 'mb-1');+ const menu = screen.getByRole('listbox').parentElement;+ expect(menu).toHaveClass('fixed');+ expect(menu).toHaveStyle({ transform: 'translateY(-100%)' });+ });++ it('portals the menu so overflow parents do not clip it', () => {+ render(+ <div style={{ overflow: 'hidden', height: 40 }}>+ <PopoverSelect+ aria-label="Rows per page"+ options={[+ { value: '10', label: '10' },+ { value: '25', label: '25' },+ ]}+ value="25"+ onValueChange={() => undefined}+ />+ </div>,+ );++ fireEvent.click(screen.getByRole('button', { name: 'Rows per page' }));++ const listbox = screen.getByRole('listbox');+ expect(listbox.parentElement).toHaveClass('fixed');+ expect(listbox.closest('[style*="overflow"]')).toBeNull();+ });++ it('keeps a portaled full-width menu matched to its trigger', () => {+ render(+ <PopoverSelect+ aria-label="Timezone"+ className="w-full"+ menuClassName="w-full min-w-0"+ options={[{ value: 'UTC', label: 'UTC' }]}+ value="UTC"+ onValueChange={() => undefined}+ />,+ );+ const trigger = screen.getByRole('button', { name: 'Timezone' });+ trigger.getBoundingClientRect = () => new DOMRect(12, 20, 240, 32);++ fireEvent.click(trigger);++ expect(screen.getByRole('listbox').parentElement).toHaveStyle({ width: '240px' });});});diff --git a/packages/trueforge-ui/test/atoms/schedules/SchedulesPage.test.tsx b/packages/trueforge-ui/test/atoms/schedules/SchedulesPage.test.tsxindex d83a8a28d..12638af10 100644--- a/packages/trueforge-ui/test/atoms/schedules/SchedulesPage.test.tsx+++ b/packages/trueforge-ui/test/atoms/schedules/SchedulesPage.test.tsx@@ -451,4 +451,55 @@ describe('SchedulesPage', () => {});expect(new URL(window.location.href).searchParams.get('agent')).toBe('demo-agent');});++ it('shows Created by when schedules include createdBySubject', async () => {+ const dailyDigest = sampleSchedules[0];+ if (dailyDigest === undefined) throw new Error('expected sample schedule');+ renderPage([+ {+ ...dailyDigest,+ createdBySubject: {+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ },+ },+ ]);+ expect(await screen.findByRole('columnheader', { name: 'Created by' })).toBeInTheDocument();+ expect(screen.getByText('[email protected]')).toBeInTheDocument();+ expect(document.querySelector('[data-slot="avatar-fallback"]')).toHaveTextContent('BO');+ });++ it('keeps Created by when filters hide the row that has createdBySubject', async () => {+ const dailyDigest = sampleSchedules[0];+ if (dailyDigest === undefined) throw new Error('expected sample schedule');+ renderPage([+ dailyDigest,+ {+ ...dailyDigest,+ id: 's2',+ name: 'weekly-digest',+ createdBySubject: {+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ },+ },+ ]);+ expect(await screen.findByRole('columnheader', { name: 'Created by' })).toBeInTheDocument();++ fireEvent.change(screen.getByPlaceholderText('Search schedules by name'), {+ target: { value: 'daily' },+ });+ expect(screen.getByText('daily-digest')).toBeInTheDocument();+ expect(screen.queryByText('weekly-digest')).not.toBeInTheDocument();+ expect(screen.queryByText('[email protected]')).not.toBeInTheDocument();+ expect(screen.getByRole('columnheader', { name: 'Created by' })).toBeInTheDocument();+ });++ it('hides Created by when no schedule has createdBySubject', async () => {+ renderPage();+ await screen.findByText('daily-digest');+ expect(screen.queryByRole('columnheader', { name: 'Created by' })).not.toBeInTheDocument();+ });});diff --git a/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/harnessBuilderServer.test.ts b/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/harnessBuilderServer.test.tsindex 86071c7bb..ce1a8d630 100644--- a/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/harnessBuilderServer.test.ts+++ b/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/harnessBuilderServer.test.ts@@ -300,6 +300,11 @@ describe('harnessBuilderServer', () => {{id: 'agt_1',name: 'reviewer',+ created_by_subject: {+ subject_id: 'user-1',+ subject_type: 'user',+ subject_display_name: 'Alice',+ },manifest: {model: { name: 'test/model' },instructions: 'Review carefully.',@@ -320,6 +325,11 @@ describe('harnessBuilderServer', () => {assert.deepEqual(all[0], {name: 'reviewer',agentId: 'agt_1',+ createdBySubject: {+ subjectId: 'user-1',+ subjectType: 'user',+ subjectDisplayName: 'Alice',+ },agentSpec: {model: { name: 'test/model' },instructions: 'Review carefully.',diff --git a/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/scheduleServer.test.ts b/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/scheduleServer.test.tsindex 96a1dcc39..a04a45bb5 100644--- a/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/scheduleServer.test.ts+++ b/packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/scheduleServer.test.ts@@ -25,6 +25,11 @@ function mockClient(agentName: 'alpha',createdAt: new Date('2024-01-01T00:00:00.000Z'),updatedAt: new Date('2024-01-01T00:00:00.000Z'),+ createdBySubject: {+ subjectId: 'user-1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ },manifest: {task: 'do thing',cron: '0 9 * * *',@@ -64,6 +69,11 @@ describe('createScheduleServer.listSchedules', () => {agentName: 'alpha',createdAt: new Date('2024-01-01T00:00:00.000Z'),updatedAt: new Date('2024-01-01T00:00:00.000Z'),+ createdBySubject: {+ subjectId: 'user-1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ },manifest: {task: 'do thing',cron: '0 9 * * *',@@ -88,6 +98,11 @@ describe('createScheduleServer.listSchedules', () => {expect(page.data).toHaveLength(1);expect(page.data[0]?.agentId).toBe('a1');expect(page.data[0]?.status).toBe('paused');+ expect(page.data[0]?.createdBySubject).toEqual({+ subjectId: 'user-1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ });expect(page.nextPageToken).toBe('tok');});diff --git a/packages/trueforge-ui/test/utils/createdBySubject.test.ts b/packages/trueforge-ui/test/utils/createdBySubject.test.tsnew file mode 100644index 000000000..90680c597--- /dev/null+++ b/packages/trueforge-ui/test/utils/createdBySubject.test.ts@@ -0,0 +1,38 @@+import { describe, expect, it } from 'vitest';++import { createdByLabel, hasCreatedBySubject } from '@/utils/createdBySubject.js';++describe('createdBySubject helpers', () => {+ it('prefers display name and falls back to id', () => {+ expect(+ createdByLabel({+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: '[email protected]',+ }),+ ).toBe('[email protected]');+ expect(+ createdByLabel({+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: '',+ }),+ ).toBe('u1');+ });++ it('detects whether any row carries createdBySubject', () => {+ expect(hasCreatedBySubject([{}])).toBe(false);+ expect(+ hasCreatedBySubject([+ {},+ {+ createdBySubject: {+ subjectId: 'u1',+ subjectType: 'user',+ subjectDisplayName: 'alice',+ },+ },+ ]),+ ).toBe(true);+ });+});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b3b7fa48b..2c13d644d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -69,8 +69,8 @@ importers:specifier: 0.2.21version: 0.2.21(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])'@truefoundry/assistant-ui-runtime':- specifier: 0.1.34- version: 0.1.34(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))+ specifier: 0.1.36+ version: 0.1.36(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))'@truefoundry/trueforge-sdk':specifier: workspace:*version: link:../trueforge-sdk@@ -363,8 +363,8 @@ importers:specifier: ^0.13.2version: 0.13.3(@openuidev/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected]))))(@openuidev/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected]))(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))'@truefoundry/assistant-ui-runtime':- specifier: 0.1.35- version: 0.1.35(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))+ specifier: 0.1.36+ version: 0.1.36(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))'@truefoundry/trueforge-sdk':specifier: workspace:*version: link:../trueforge-sdk@@ -1071,6 +1071,12 @@ packages:cpu: [ppc64]os: [aix]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [aix]+'@esbuild/[email protected]':resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}engines: {node: '>=18'}@@ -1089,6 +1095,12 @@ packages:cpu: [arm64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==}engines: {node: '>=18'}@@ -1107,6 +1119,12 @@ packages:cpu: [arm]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==}engines: {node: '>=18'}@@ -1125,6 +1143,12 @@ packages:cpu: [x64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==}engines: {node: '>=18'}@@ -1143,6 +1167,12 @@ packages:cpu: [arm64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==}engines: {node: '>=18'}@@ -1161,6 +1191,12 @@ packages:cpu: [x64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==}engines: {node: '>=18'}@@ -1179,6 +1215,12 @@ packages:cpu: [arm64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==}engines: {node: '>=18'}@@ -1197,6 +1239,12 @@ packages:cpu: [x64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==}engines: {node: '>=18'}@@ -1215,6 +1263,12 @@ packages:cpu: [arm64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==}engines: {node: '>=18'}@@ -1233,6 +1287,12 @@ packages:cpu: [arm]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==}engines: {node: '>=18'}@@ -1251,6 +1311,12 @@ packages:cpu: [ia32]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==}engines: {node: '>=18'}@@ -1269,6 +1335,12 @@ packages:cpu: [loong64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==}+ engines: {node: '>=18'}+ cpu: [loong64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==}engines: {node: '>=18'}@@ -1287,6 +1359,12 @@ packages:cpu: [mips64el]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==}+ engines: {node: '>=18'}+ cpu: [mips64el]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==}engines: {node: '>=18'}@@ -1305,6 +1383,12 @@ packages:cpu: [ppc64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==}engines: {node: '>=18'}@@ -1323,6 +1407,12 @@ packages:cpu: [riscv64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==}+ engines: {node: '>=18'}+ cpu: [riscv64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==}engines: {node: '>=18'}@@ -1341,6 +1431,12 @@ packages:cpu: [s390x]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==}+ engines: {node: '>=18'}+ cpu: [s390x]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==}engines: {node: '>=18'}@@ -1359,6 +1455,12 @@ packages:cpu: [x64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==}engines: {node: '>=18'}@@ -1377,6 +1479,12 @@ packages:cpu: [arm64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==}engines: {node: '>=18'}@@ -1395,6 +1503,12 @@ packages:cpu: [x64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==}engines: {node: '>=18'}@@ -1413,6 +1527,12 @@ packages:cpu: [arm64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==}engines: {node: '>=18'}@@ -1431,6 +1551,12 @@ packages:cpu: [x64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [openbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==}engines: {node: '>=18'}@@ -1449,6 +1575,12 @@ packages:cpu: [arm64]os: [openharmony]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openharmony]+'@esbuild/[email protected]':resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==}engines: {node: '>=18'}@@ -1467,6 +1599,12 @@ packages:cpu: [x64]os: [sunos]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [sunos]+'@esbuild/[email protected]':resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==}engines: {node: '>=18'}@@ -1485,6 +1623,12 @@ packages:cpu: [arm64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==}engines: {node: '>=18'}@@ -1503,6 +1647,12 @@ packages:cpu: [ia32]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==}engines: {node: '>=18'}@@ -1521,6 +1671,12 @@ packages:cpu: [x64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==}engines: {node: '>=18'}@@ -3486,20 +3642,8 @@ packages:'@types/react-dom':optional: true- '@truefoundry/[email protected]':- resolution: {integrity: sha512-WeUGHCLD2OC1sWwxl4BwFe8AI26bWZFyAzm7BQA5CxR7O4zmIcEILVsgLMbPyyMzZlyrswubTEdeX50s5qHh5A==}- peerDependencies:- '@types/react': '*'- react: ^18 || ^19- truefoundry-gateway-sdk: ^0.4.0-rc.6- peerDependenciesMeta:- '@types/react':- optional: true- truefoundry-gateway-sdk:- optional: true-- '@truefoundry/[email protected]':- resolution: {integrity: sha512-r9m9xCcNlvVVX9Em/MzzlIUiT9JVuMf5XeX+KnT/mMx4BvQ9C36Iyn350PsdL6miSmmpsALWjH3weX45zM7k9g==}+ '@truefoundry/[email protected]':+ resolution: {integrity: sha512-bjI3lRfvmTwy44hKHlf/RuJN8eLqIpm6ph9rjjBKXw/5D1fGWdGJCB/TDzeSDAHPGij63yJkFCvYXEbMdDx8Kg==}peerDependencies:'@types/react': '*'react: ^18 || ^19@@ -4678,6 +4822,11 @@ packages:engines: {node: '>=18'}hasBin: true+ resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==}+ engines: {node: '>=18'}+ hasBin: true+resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}engines: {node: '>=18'}@@ -8337,6 +8486,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8346,6 +8498,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8355,6 +8510,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8364,6 +8522,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8373,6 +8534,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8382,6 +8546,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8391,6 +8558,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8400,6 +8570,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8409,6 +8582,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8418,6 +8594,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8427,6 +8606,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8436,6 +8618,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8445,6 +8630,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8454,6 +8642,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8463,6 +8654,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8472,6 +8666,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8481,6 +8678,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8490,6 +8690,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8499,6 +8702,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8508,6 +8714,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8517,6 +8726,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8526,6 +8738,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8535,6 +8750,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8544,6 +8762,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8553,6 +8774,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -8562,6 +8786,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -10670,22 +10897,7 @@ snapshots:'@types/react': 19.2.18'@types/react-dom': 19.2.5(@types/[email protected])- '@truefoundry/[email protected](@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))':- dependencies:- '@assistant-ui/core': 0.2.22(@assistant-ui/[email protected](@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected](@types/[email protected])([email protected])([email protected]([email protected])))- '@assistant-ui/store': 0.2.21(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])- react: 19.2.8- optionalDependencies:- '@types/react': 19.2.18- truefoundry-gateway-sdk: 0.4.2- transitivePeerDependencies:- - '@assistant-ui/tap'- - assistant-cloud- - ioredis- - redis- - zustand-- '@truefoundry/[email protected](@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))':+ '@truefoundry/[email protected](@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected])))':dependencies:'@assistant-ui/core': 0.2.22(@assistant-ui/[email protected](@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected](@opentelemetry/[email protected])))([email protected])([email protected](@opentelemetry/[email protected]))([email protected](@types/[email protected])([email protected])([email protected]([email protected])))'@assistant-ui/store': 0.2.21(@assistant-ui/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])@@ -11946,6 +12158,35 @@ snapshots:'@esbuild/win32-ia32': 0.27.7'@esbuild/win32-x64': 0.27.7+ optionalDependencies:+ '@esbuild/aix-ppc64': 0.28.1+ '@esbuild/android-arm': 0.28.1+ '@esbuild/android-arm64': 0.28.1+ '@esbuild/android-x64': 0.28.1+ '@esbuild/darwin-arm64': 0.28.1+ '@esbuild/darwin-x64': 0.28.1+ '@esbuild/freebsd-arm64': 0.28.1+ '@esbuild/freebsd-x64': 0.28.1+ '@esbuild/linux-arm': 0.28.1+ '@esbuild/linux-arm64': 0.28.1+ '@esbuild/linux-ia32': 0.28.1+ '@esbuild/linux-loong64': 0.28.1+ '@esbuild/linux-mips64el': 0.28.1+ '@esbuild/linux-ppc64': 0.28.1+ '@esbuild/linux-riscv64': 0.28.1+ '@esbuild/linux-s390x': 0.28.1+ '@esbuild/linux-x64': 0.28.1+ '@esbuild/netbsd-arm64': 0.28.1+ '@esbuild/netbsd-x64': 0.28.1+ '@esbuild/openbsd-arm64': 0.28.1+ '@esbuild/openbsd-x64': 0.28.1+ '@esbuild/openharmony-arm64': 0.28.1+ '@esbuild/sunos-x64': 0.28.1+ '@esbuild/win32-arm64': 0.28.1+ '@esbuild/win32-ia32': 0.28.1+ '@esbuild/win32-x64': 0.28.1+optionalDependencies:'@esbuild/aix-ppc64': 0.28.2@@ -11974,6 +12215,7 @@ snapshots:'@esbuild/win32-arm64': 0.28.2'@esbuild/win32-ia32': 0.28.2'@esbuild/win32-x64': 0.28.2+ optional: true@@ -15047,7 +15289,7 @@ snapshots:dependencies:- esbuild: 0.28.2+ esbuild: 0.28.1optionalDependencies:fsevents: 2.3.3