fix: clarify readonly api status labels
This commit is contained in:
@@ -137,9 +137,9 @@ export function normalizeAgent(agent = {}) {
|
||||
fileName,
|
||||
name,
|
||||
description,
|
||||
role: agent.developerInstructions || '没有 developer_instructions 字段',
|
||||
role: agent.developerInstructions || '没有角色设定字段',
|
||||
status: isInvalid ? 'unknown' : 'complete',
|
||||
statusLabel: isInvalid ? 'TOML 无效' : '已读取',
|
||||
statusLabel: isInvalid ? 'TOML 无效' : 'TOML 有效',
|
||||
parseStatus,
|
||||
parseStatusLabel: formatParseStatus(parseStatus),
|
||||
parseError: agent.parseError || '',
|
||||
@@ -245,6 +245,7 @@ export function normalizeWorkflow(payload = {}) {
|
||||
isEmpty: events.length === 0 && phases.length === 0 && handoffs.length === 0,
|
||||
emptyTitle: '没有工作流事件',
|
||||
emptyText: source.message || '后端返回了空的工作流事件流;这里不会回退到伪装真实的示例关系。',
|
||||
emptyHandoffsText: '后端没有返回交接边;当前保持空状态。',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,7 +260,7 @@ function synthesizeAgentPreview(agent, { isInvalid, description }) {
|
||||
`description = ${quote(agent.description || '')}`,
|
||||
]
|
||||
if (agent.developerInstructions) {
|
||||
lines.push(`developer_instructions = ${quote(agent.developerInstructions)}`)
|
||||
lines.push(`角色设定 = ${quote(agent.developerInstructions)}`)
|
||||
}
|
||||
for (const [key, value] of Object.entries(agent.extraFields || {})) {
|
||||
lines.push(`${key} = ${quote(value)}`)
|
||||
|
||||
Reference in New Issue
Block a user