feat(teacher): 连接 Yuxi 老师并提供项目与会话只读工具

This commit is contained in:
2026-09-23 09:56:11 +08:00
parent 1f2ad3fb3a
commit e35a13079e
14 changed files with 886 additions and 30 deletions

View File

@@ -1,6 +1,9 @@
import type { PublicUsage } from './coding-conversation-contracts';
export interface TeacherDefinition {
config_id?: string;
runtime?: 'local' | 'yuxi';
yuxi?: { agent_slug: string; agent_version: number };
schema_version: 1;
teacher_id: 'coding-teacher';
name: string;
@@ -29,6 +32,9 @@ export interface TeacherAvailability {
published_version: number | null;
revision: number;
}
export interface TeacherCatalog {
items: Array<{ teacher_id: string; version: number; definition: TeacherDefinition; is_default: boolean }>;
}
export interface TeacherReference {
kind: 'message' | 'code';
text: string;
@@ -67,6 +73,8 @@ export interface TeacherRequest {
response: string;
error?: string;
usage?: PublicUsage;
cloudRequestId?: string;
progress?: string;
}
export interface TeacherTopic {
revision: number;