Skip to content

Commit 0d37f92

Browse files
committed
chore(all): unify naming case of webui config
1 parent fc7a80d commit 0d37f92

6 files changed

Lines changed: 13 additions & 17 deletions

File tree

multimodal/agent-tars/core/src/agent-tars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { AgentWebUIImplementation } from '@agent-tars/interface';
4747
*/
4848
export 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
*/

multimodal/omni-tars/omni-agent/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type OmniTarsOption = AgentOptions & MCPTarsExtraOption & CodeAgentExtraOption;
3232
export 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.',

multimodal/tarko/agent-interface/src/agent-constructor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};

multimodal/tarko/agent-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

multimodal/tarko/agent-web-ui/src/standalone/home/WelcomePage.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

multimodal/tarko/agent-web-ui/src/standalone/navbar/AboutModal.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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(() => {

0 commit comments

Comments
 (0)