File tree Expand file tree Collapse file tree
agent-web-ui/src/standalone Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import { AgentWebUIImplementation } from '@agent-tars/interface';
4747 */
4848export class AgentTARS < T extends AgentTARSOptions = AgentTARSOptions > extends MCPAgent < T > {
4949 static label = '@agent-tars/core' ;
50-
50+
5151 /**
5252 * Default Web UI configuration for Agent TARS
5353 */
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ type OmniTarsOption = AgentOptions & MCPTarsExtraOption & CodeAgentExtraOption;
3232export default class OmniTARSAgent extends ComposableAgent {
3333 static label = 'Omni-TARS Agent' ;
3434
35- static webUIConfig : AgentWebUIImplementation = {
35+ static webuiConfig : AgentWebUIImplementation = {
3636 logo : 'https://lf3-static.bytednsdoc.com/obj/eden-cn/zyha-aulnh/ljhwZthlaukjlkulzlp/icon.png' ,
3737 title : 'Omni-TARS Agent' ,
3838 subtitle : 'Offering seamless integration with a wide range of real-world tools.' ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export type AgentConstructor<
1414 U extends AgentOptions = AgentOptions ,
1515> = ( new ( options : U ) => T ) & {
1616 label ?: string ;
17- // FIXME: find a better solution for webUIConfig
17+ // FIXME: find a better solution for webuiConfig
1818 // eslint-disable-next-line @typescript-eslint/no-explicit-any
19- webUIConfig ?: Record < string , any > ;
19+ webuiConfig ?: Record < string , any > ;
2020} ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export class AgentServer<T extends AgentAppConfig = AgentAppConfig> {
121121 * @returns Web UI config or undefined
122122 */
123123 getAgentConstructorWebConfig ( ) : Record < string , any > | undefined {
124- return this . currentAgentResolution ?. agentConstructor . webUIConfig ;
124+ return this . currentAgentResolution ?. agentConstructor . webuiConfig ;
125125 }
126126
127127 /**
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ const WelcomePage: React.FC = () => {
1515 const inputRef = useRef < HTMLTextAreaElement > ( null ) ;
1616
1717 // Get configuration from global window object with fallback defaults
18- const webUIConfig = getWebUIConfig ( ) ;
18+ const webuiConfig = getWebUIConfig ( ) ;
1919 const logoUrl = getLogoUrl ( ) ;
20- const pageTitle = webUIConfig ?. title ;
21- const pageSubtitle = webUIConfig ?. subtitle ;
22- const webclomeTitle = webUIConfig ?. welcomTitle ?? webUIConfig ?. title ;
23- const examplePrompts = webUIConfig ?. welcomePrompts ?? [ ] ;
20+ const pageTitle = webuiConfig ?. title ;
21+ const pageSubtitle = webuiConfig ?. subtitle ;
22+ const webclomeTitle = webuiConfig ?. welcomTitle ?? webuiConfig ?. title ;
23+ const examplePrompts = webuiConfig ?. welcomePrompts ?? [ ] ;
2424
2525 useEffect ( ( ) => {
2626 // Focus the input field when component mounts
Original file line number Diff line number Diff line change @@ -13,19 +13,15 @@ interface AboutModalProps {
1313 sessionMetadata ?: SessionItemInfo [ 'metadata' ] ;
1414}
1515
16- export const AboutModal : React . FC < AboutModalProps > = ( {
17- isOpen,
18- onClose,
19- sessionMetadata,
20- } ) => {
16+ export const AboutModal : React . FC < AboutModalProps > = ( { isOpen, onClose, sessionMetadata } ) => {
2117 const [ versionInfo , setVersionInfo ] = useState < AgentServerVersionInfo | null > ( null ) ;
2218 const [ copiedModel , setCopiedModel ] = useState ( false ) ;
2319 const [ copiedAgent , setCopiedAgent ] = useState ( false ) ;
2420
2521 // Get configuration from global window object
26- const webUIConfig = getWebUIConfig ( ) ;
22+ const webuiConfig = getWebUIConfig ( ) ;
2723 const logoUrl = getLogoUrl ( ) ;
28- const subtitle = webUIConfig ?. subtitle ;
24+ const subtitle = webuiConfig ?. subtitle ;
2925
3026 // Load version info when modal opens
3127 useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments