
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@autobe/ui
Advanced tools
Event UI components for the AutoBe platform with comprehensive event handling, grouping, and collapsible functionality.
The AutoBe Event system provides a complete solution for displaying various types of events in the AutoBe workflow. The main entry point is AutoBeEventMovie
, which intelligently routes different event types to their appropriate components.
The central component that handles all event types and routes them to appropriate sub-components.
import { AutoBeEventMovie } from "@autobe/ui/events";
<AutoBeEventMovie
service={rpcService}
events={eventArray}
last={isLastEvent}
/>
Supported Event Types:
userMessage
, assistantMessage
analyzeStart
, prismaStart
, interfaceStart
, testStart
, realizeStart
, realizeTestStart
, realizeAuthorizationStart
analyzeScenario
, prismaComponents
, interfaceGroups
, realizeTestReset
analyzeWrite
, analyzeReview
, interfaceEndpoints
, prismaSchemas
, prismaReview
, interfaceOperations
, interfaceOperationsReview
, interfaceAuthorization
, interfaceSchemas
, interfaceSchemasReview
, testWrite
, testScenarios
, realizeWrite
, realizeAuthorizationWrite
, realizeTestOperation
prismaInsufficient
, prismaValidate
, interfaceComplement
, testValidate
, realizeValidate
, realizeAuthorizationValidate
analyzeComplete
, prismaComplete
, interfaceComplete
, testComplete
, realizeComplete
Shows progress tracking events with animated progress bars and status indicators.
import { AutoBeProgressEventMovie } from "@autobe/ui/events";
<AutoBeProgressEventMovie event={progressEvent} />
Displays validation events with detailed error/success states and validation results.
import { AutoBeValidateEventMovie } from "@autobe/ui/events";
<AutoBeValidateEventMovie event={validateEvent} />
Shows scenario analysis and component generation events with structured data display.
import { AutoBeScenarioEventMovie } from "@autobe/ui/events";
<AutoBeScenarioEventMovie event={scenarioEvent} />
Displays pipeline start events with clean status indicators and timing information.
import { AutoBeStartEventMovie } from "@autobe/ui/events";
<AutoBeStartEventMovie event={startEvent} />
Shows completion events with file download capabilities and summary statistics.
import { AutoBeCompleteEventMovie } from "@autobe/ui/events";
<AutoBeCompleteEventMovie
event={completeEvent}
getFiles={service.getFiles}
/>
Intelligently groups validation events with success rate statistics and collapsible interface.
import { ValidateEventGroup } from "@autobe/ui/events";
<ValidateEventGroup
events={validateEvents}
defaultCollapsed={true}
/>
Features:
Displays user messages with support for various content types (text, files, images, audio).
import { AutoBeUserMessageMovie } from "@autobe/ui";
<AutoBeUserMessageMovie message={userMessageContents} />
Shows assistant responses with timestamps and custom assistant names.
import { AutoBeAssistantMessageMovie } from "@autobe/ui";
<AutoBeAssistantMessageMovie
text={responseText}
isoTimestamp={timestamp}
assistantName="AutoBe"
/>
Use the groupEvents
utility to automatically group events by type:
import { groupEvents } from "@autobe/ui/events/utils/eventGrouper";
const EventList = ({ events }: { events: AutoBeEvent[] }) => {
const groupedComponents = groupEvents(events, {
minGroupSize: 3, // Minimum events to form a group
defaultCollapsed: true, // Start collapsed
enableGrouping: true, // Enable grouping
});
return (
<div>
{groupedComponents}
</div>
);
};
Create custom event groups using the CollapsibleEventGroup
component:
import { CollapsibleEventGroup } from "@autobe/ui/events";
<CollapsibleEventGroup
events={customEvents}
title="Custom Event Group"
iconType="info"
getTimestamp={(event) => event.created_at}
renderEvent={(event, index) => <CustomEventComponent event={event} />}
renderSummary={(events) => <CustomSummary events={events} />}
defaultCollapsed={true}
description="Custom grouped events"
/>
Basic card container for consistent styling across all event types.
import { EventCard } from "@autobe/ui/events";
<EventCard>
<div>Your content here</div>
</EventCard>
Standardized header with icon, title, timestamp, and step numbering.
import { EventHeader } from "@autobe/ui/events";
<EventHeader
title="Event Title"
timestamp="2024-01-01T12:00:00Z"
iconType="success"
step={1}
/>
Consistent content area styling with proper spacing and typography.
import { EventContent } from "@autobe/ui/events";
<EventContent>
<div>Your content here</div>
</EventContent>
Consistent icons for different event states with customizable sizes.
import { EventIcon } from "@autobe/ui/events";
<EventIcon type="success" size={16} />
Available icon types: success
, progress
, warning
, error
, info
, start
Reusable progress bar component with customizable styling.
import { ProgressBar } from "@autobe/ui/events";
<ProgressBar
current={7}
total={10}
color="#4caf50"
showLabel={true}
/>
The AutoBe event system follows a predictable flow:
import { AutoBeEventMovie, IAutoBeEventMovieProps } from "@autobe/ui/events";
const CustomEventHandler = ({ events, service, last }: IAutoBeEventMovieProps<AutoBeEvent>) => {
// Pre-process events if needed
const processedEvents = preprocessEvents(events);
return (
<AutoBeEventMovie
events={processedEvents}
service={service}
last={last}
/>
);
};
const filteredEvents = events.filter(event =>
!['vendorRequest', 'vendorResponse', 'jsonParseError'].includes(event.type)
);
All components are fully typed with comprehensive interfaces:
interface IAutoBeEventMovieProps<Event extends AutoBeEvent> {
service: IAutoBeRpcService;
events: Event[];
last: boolean;
}
FAQs
AutoBE UI
The npm package @autobe/ui receives a total of 205 weekly downloads. As such, @autobe/ui popularity was classified as not popular.
We found that @autobe/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.