feat(schedule): 优化排程任务配置与进度契约处理逻辑
This commit is contained in:
1 parent
d54f51ddc3
commit
99453aa52a
65 files changed
+2837
-487
No files matched your search
@@ -116,7 +116,9 @@ export interface AdminAgentRegistrySchema {
|
||||
models?: string[];
|
||||
required_fields?: string[];
|
||||
forced_capabilities?: Record<string, boolean>;
|
||||
default_capabilities?: Record<string, boolean>;
|
||||
default_intent_routes?: string[];
|
||||
progress_contract?: Record<string, unknown> | null;
|
||||
handler_config_schema?: Record<string, unknown>;
|
||||
}>;
|
||||
handler_config_schemas: Record<string, unknown>;
|
||||
|
||||
@@ -33,6 +33,17 @@ export const importAdminSchedules = async (payload: any) => {
|
||||
});
|
||||
};
|
||||
|
||||
export interface PlatformJobOption {
|
||||
key: string;
|
||||
/** 前端 i18n key;下拉优先 $t(label_key),label 仅作 fallback */
|
||||
label_key?: string | null;
|
||||
label: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export const listAdminPlatformJobs = () =>
|
||||
getJson<PlatformJobOption[]>('/api/admin/schedule/platform-jobs');
|
||||
|
||||
export const getAdminScheduleTaskConfig = (taskId: number) =>
|
||||
getJson<{ data_source_type: string; config: Record<string, any> | null }>(`/api/admin/schedule-config/${taskId}`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user