1.排程管理新增检核规则提示词维护,用于传入Dify中作为检核规则

2.聊天界面内容不可复制问题修复
This commit is contained in:
hugo committed 2026-05-25 14:58:09 +08:00
1 parent 452f6ebc6d
commit ff2d02051f
17 files changed
+355 -20

No files matched your search

+11
View File
@@ -40,6 +40,7 @@ export interface ScheduleRun {
api_response_json?: Record<string, any> | null;
response_summary_json?: Record<string, any> | null;
step_logs?: StepLog[] | null;
dify_execution_snapshot?: DifyExecutionSnapshot | null;
error_message?: string | null;
excel_file_name?: string | null;
excel_file_size?: number | null;
@@ -59,6 +60,15 @@ export interface StepLog {
detail?: Record<string, any>;
}
export interface DifyExecutionSnapshot {
dify_enabled?: boolean;
dify_agent_id?: number | null;
dify_agent_name?: string | null;
dify_app_id?: string | null;
dify_system_prompt?: string;
captured_at?: string;
}
async function getJson<T>(url: string): Promise<T> {
const res = await fetch(url, { headers: getAuthHeaders() });
if (!res.ok) throw new Error((await res.json().catch(() => ({})))?.error || 'Request failed');
@@ -119,6 +129,7 @@ export interface TestScheduleRunResult {
errors: string[];
step_logs: StepLog[];
dify_agent_id: number | null;
dify_execution_snapshot?: DifyExecutionSnapshot | null;
}
export const testAdminScheduleRun = (taskId: number, payload: { fetch_where_conditions?: string; fetch_order_by?: string; limit?: number }) =>