Merge origin/master into skill system branch

Resolve documentation split, tool presentation, and generated catalog changes from master while preserving the skill system integration.
This commit is contained in:
Yichen Jiang
2026-07-05 16:50:29 +08:00
454 changed files with 29524 additions and 4598 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export function apply(ctx: Context): void {
return [{ type: 'text', text: renderSkillContent(skill) }]
},
presentCall(args) {
return { title: `Load skill ${args.name}`, kind: 'read', rawInput: args.name }
return { card: 'generic', title: `Load skill ${args.name}`, kind: 'read', rawInput: args.name }
},
})
ctx.tools.register(skillTool)
@@ -39,6 +39,7 @@ describe('dsh-tool-skill', () => {
const fiber = await ctx.plugin(toolSkill)
expect(ctx.tools.schemas().map(tool => tool.name)).toEqual(['skill'])
expect(ctx.tools.get('skill')?.presentCall?.({ name: 'project-skill' })).toEqual({
card: 'generic',
title: 'Load skill project-skill',
kind: 'read',
rawInput: 'project-skill',