feat(agents): 新增云端智能体入口与草稿编辑

This commit is contained in:
2026-09-10 16:00:37 +08:00
parent 927a85fa22
commit 46fbae9dec
21 changed files with 921 additions and 17 deletions

28
shared/cloud-agents.ts Normal file
View File

@@ -0,0 +1,28 @@
export const CLOUD_AGENTS_PATH = '/api/cloud-agents';
export interface CloudAgentDraft {
slug: string;
name: string;
purpose: string;
system_prompt: string;
draft_revision: number;
updated_at: string;
}
export interface CloudAgentPage {
agents: CloudAgentDraft[];
next_cursor: string | null;
}
export interface CreateCloudAgent {
operation_id: string;
name: string;
purpose: string;
}
export interface SaveCloudAgentDraft {
expected_revision: number;
name: string;
purpose: string;
system_prompt: string;
}