v1.12 track A: container guidance + skills

This commit is contained in:
2026-05-21 15:11:04 +00:00
parent ab01e04d77
commit a2e2481ef9
11 changed files with 482 additions and 79 deletions

View File

@@ -49,6 +49,14 @@ export function formatToolArgs(name: string, args: Record<string, unknown>): str
if (name === 'git_status') {
return '';
}
if (name === 'skill_use') {
// Schema (apps/server/src/services/tools.ts SkillUseInput) uses `name`;
// fall back to `skill_name` defensively in case a model emits that key.
return truncate(
String(args.name ?? (args as { skill_name?: unknown }).skill_name ?? '<unknown>'),
ARG_SUMMARY_MAX,
);
}
// Unknown tool — surface first arg value or the literal {} so the user can
// see something happened. Forward-compatible with future tools.
const keys = Object.keys(args);