fix(skill): simplify agent install prompt

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
XiaoSeS 2026-09-04 14:29:29 +08:00
parent 42a0e423f4
commit a41ce7656c
5 changed files with 7 additions and 6 deletions

View file

@ -67,8 +67,8 @@ test.describe('Public Skill Detail Anonymous Access (Real API)', () => {
expect(agentPrompt).toContain(`${registryUrl}/install/skillhub.md`)
expect(agentPrompt).toContain(skillhubCoordinate)
expect(agentPrompt).toContain(current.skill.version)
expect(agentPrompt).toContain('explain why and stop')
expect(agentPrompt).toContain('do not use another source')
expect(agentPrompt).not.toContain('explain why and stop')
expect(agentPrompt).not.toContain('do not use another source')
expect(agentPrompt).not.toContain('fallback')
await page.getByRole('tab', { name: 'ClawHub CLI' }).click()

View file

@ -32,7 +32,8 @@ describe('landing quick start locales', () => {
expect(prompt).toContain('{{version}}')
expect(prompt).not.toContain('fallback')
expect(prompt).not.toContain('备用公共')
expect(prompt).toMatch(/不要改用其他来源|do not use another source|не используйте другой источник/)
expect(prompt).not.toMatch(/若无法安装|If installation fails|Если установка не удалась/)
expect(prompt).not.toMatch(/不要改用其他来源|do not use another source|не используйте другой источник/)
}
})

View file

@ -1051,7 +1051,7 @@
"installForAgent": {
"button": "Install for Agent",
"copied": "Agent prompt copied",
"prompt": "Follow {{guideUrl}} to connect SkillHub and install {{skill}} version {{version}} from this SkillHub. If installation fails, explain why and stop; do not use another source."
"prompt": "Follow {{guideUrl}} to connect SkillHub and install {{skill}} version {{version}} from this SkillHub."
}
},
"skillCompare": {

View file

@ -1116,7 +1116,7 @@
"installForAgent": {
"button": "Установить для агента",
"copied": "Инструкция скопирована",
"prompt": "Следуйте инструкции {{guideUrl}}, чтобы подключить SkillHub и установить {{skill}} версии {{version}} из этого SkillHub. Если установка не удалась, объясните причину и остановитесь; не используйте другой источник."
"prompt": "Следуйте инструкции {{guideUrl}}, чтобы подключить SkillHub и установить {{skill}} версии {{version}} из этого SkillHub."
}
},
"skillCompare": {

View file

@ -1051,7 +1051,7 @@
"installForAgent": {
"button": "安装到 Agent",
"copied": "安装指令已复制",
"prompt": "请根据 {{guideUrl}} 接入 SkillHub并从该 SkillHub 安装 {{skill}} 的 {{version}} 版本。若无法安装,请说明原因并停止,不要改用其他来源。"
"prompt": "请根据 {{guideUrl}} 接入 SkillHub并从该 SkillHub 安装 {{skill}} 的 {{version}} 版本。"
}
},
"skillCompare": {