feat: 对齐后端能力并补齐形态提示词与生产诊断

This commit is contained in:
GouJ committed 2026-09-02 18:21:20 +08:00
1 parent 7d8074f90e
commit f71d2bf0a4
30 files changed
+1707 -66

No files matched your search

+14 -3
View File
@@ -1,13 +1,15 @@
<script setup lang="ts">
import { computed } from 'vue'
import { NScrollbar, NEmpty, NTimeline, NTimelineItem } from 'naive-ui'
import { computed, ref } from 'vue'
import { NButton, NScrollbar, NEmpty, NTimeline, NTimelineItem } from 'naive-ui'
import { Clock3 } from '@lucide/vue'
import { formatDate, nodeLabel } from '../../lib/format'
import { workflowCheckpoints } from './selectors'
import type { Checkpoint } from './types'
import WorkflowDiagnosticsDialog from './WorkflowDiagnosticsDialog.vue'
/** 时间线只说明 checkpoint 已保存,不把每条记录误标为工作流成功。 */
const props = defineProps<{ checkpoints: Checkpoint[]; workflow: string }>()
const props = defineProps<{ checkpoints: Checkpoint[]; workflow: string; projectId?: string }>()
const diagnosticsOpen = ref(false)
const history = computed(() => workflowCheckpoints(props.checkpoints, props.workflow).slice(-18).toReversed())
</script>
@@ -16,6 +18,9 @@ const history = computed(() => workflowCheckpoints(props.checkpoints, props.work
<NScrollbar class="panel-scroll" content-class="history-content">
<h3 class="mb-1 flex items-center gap-2 text-sm font-semibold"><Clock3 :size="15" />执行记录</h3>
<p class="mb-6 text-xs leading-5 text-muted">最近 18 个 checkpoint · 自动刷新</p>
<NButton v-if="projectId" text size="small" class="mb-4" @click="diagnosticsOpen = true"
>查看完整运行诊断</NButton
>
<NEmpty v-if="!history.length" size="small" description="工作流尚未保存执行记录。" />
<NTimeline v-else>
<NTimelineItem
@@ -41,5 +46,11 @@ const history = computed(() => workflowCheckpoints(props.checkpoints, props.work
记录在节点或批次结束后更新,长时间无新记录不一定意味着任务失败。
</p>
</NScrollbar>
<WorkflowDiagnosticsDialog
v-if="projectId"
v-model:open="diagnosticsOpen"
:project-id="projectId"
:checkpoints="checkpoints"
/>
</aside>
</template>