Skip to content

Commit cb98384

Browse files
committed
chore: i18n strings, Agent type, api client helpers
- en.json + zh.json: talentMarket.*, nav.hire, postHire.* entries - Agent interface: onboarded_for_me replaces the deprecated bootstrapped - tenantApi.me() for the shared /tenants/me endpoint - enterpriseApi.setDefaultModel() for the admin set-default action
1 parent 90e2e73 commit cb98384

4 files changed

Lines changed: 33 additions & 0 deletions

File tree

frontend/src/i18n/en.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,22 @@
5151
"myCreated": "Created by me",
5252
"companyShared": "Company shared",
5353
"newAgent": "New Digital Employee",
54+
"hire": "Hire teammate",
5455
"enterprise": "Company Settings",
5556
"language": "Language",
5657
"plaza": "Plaza"
5758
},
59+
"talentMarket": {
60+
"title": "Talent Market",
61+
"subtitle": "Pick a professional to join your company",
62+
"hire": "Hire",
63+
"hiring": "Hiring...",
64+
"footer": "Hire now · adjust anything in settings later",
65+
"customTitle": "Build custom",
66+
"customCategory": "Custom",
67+
"customDescription": "Define identity, personality, permissions, and tools from scratch.",
68+
"customStart": "Start"
69+
},
5870
"auth": {
5971
"login": "Login",
6072
"register": "Register",

frontend/src/i18n/zh.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,24 @@
3131
"myCreated": "我创建的",
3232
"companyShared": "公司共用",
3333
"newAgent": "新建数字员工",
34+
"hire": "招聘新成员",
3435
"enterprise": "公司设置",
3536
"adminCompanies": "公司管理",
3637
"platformSettings": "平台设置",
3738
"language": "语言",
3839
"plaza": "广场"
3940
},
41+
"talentMarket": {
42+
"title": "人才市场",
43+
"subtitle": "挑选一位专业成员加入你的公司",
44+
"hire": "聘用",
45+
"hiring": "聘用中...",
46+
"footer": "点击聘用·可随时在设置中调整",
47+
"customTitle": "自建 Agent",
48+
"customCategory": "自定义",
49+
"customDescription": "从零开始定义身份、性格、权限和工具,完全按你的需求打造。",
50+
"customStart": "开始"
51+
},
4052
"plaza": {
4153
"title": "智能体广场",
4254
"subtitle": "数字员工与人类分享见解、想法和更新的地方。",

frontend/src/services/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ export const tenantApi = {
198198

199199
resolveByDomain: (domain: string) =>
200200
request<any>(`/tenants/resolve-by-domain?domain=${encodeURIComponent(domain)}`),
201+
202+
me: () =>
203+
request<{ id: string; name: string; default_model_id: string | null; [k: string]: any }>('/tenants/me'),
201204
};
202205

203206
export const adminApi = {
@@ -340,6 +343,9 @@ export const enterpriseApi = {
340343
const tid = localStorage.getItem('current_tenant_id');
341344
return request<any[]>(`/enterprise/llm-models${tid ? `?tenant_id=${tid}` : ''}`);
342345
},
346+
347+
setDefaultModel: (modelId: string) =>
348+
request<void>(`/enterprise/llm-models/${modelId}/set-default`, { method: 'POST' }),
343349
templates: () => request<any[]>('/agents/templates'),
344350

345351
// Enterprise Knowledge Base

frontend/src/types/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export interface Agent {
3838
context_window_size?: number;
3939
agent_type?: 'native' | 'openclaw';
4040
openclaw_last_seen?: string;
41+
// True when the viewing user has already been onboarded to this agent.
42+
// Defaults to true on list endpoints that don't compute per-viewer state.
43+
onboarded_for_me?: boolean;
4144
created_at: string;
4245
last_active_at?: string;
4346
}

0 commit comments

Comments
 (0)