优化:产品查询数据库分页并修复报告测试契约
This commit is contained in:
@@ -4,7 +4,7 @@ import fs from 'node:fs';
|
||||
import ts from 'typescript';
|
||||
import React from 'react';
|
||||
import { renderToStaticMarkup } from 'react-dom/server';
|
||||
import { buildAgentReportLayout, agentReportPrimary, agentReportSupplementary } from '../src/agent/agentReportLayout.ts';
|
||||
import { buildAgentReportLayout, agentReportPrimary, agentReportSupplementary, partitionAgentReportVisuals } from '../src/agent/agentReportLayout.ts';
|
||||
import { stripDuplicateFirstMarkdownH1 } from '../src/analysisReportTitle.ts';
|
||||
import { tableTextAlignment } from '../src/tableTextAlignment.ts';
|
||||
import { sanitizeAnalysisDisplayText } from '../src/analysisDisplayText.ts';
|
||||
@@ -26,7 +26,7 @@ const Document=load('../src/agent/AgentDeliverable.tsx','AgentDeliverable',{
|
||||
ReportVisualFigure:({visual,image})=>image?.svg?React.createElement('figure',{'data-chart':visual.id},visual.title):React.createElement('table',{'data-fallback':visual.id},React.createElement('tbody',null,React.createElement('tr',null,React.createElement('td',null,visual.title)))),
|
||||
reportVisualImageSource:image=>image?.svg||'',reportVisuals:()=>figures,
|
||||
useReportVisualImages:()=>({authorized:true,loading:false,images}),analysisSnapshotResult:turn=>turn.result,
|
||||
reportSnapshotIdentity:()=>'',analysisScopeText:()=>'',stripDuplicateFirstMarkdownH1,buildAgentReportLayout,agentReportPrimary,agentReportSupplementary,
|
||||
reportSnapshotIdentity:()=>'',analysisScopeText:()=>'',stripDuplicateFirstMarkdownH1,buildAgentReportLayout,agentReportPrimary,agentReportSupplementary,partitionAgentReportVisuals,
|
||||
captureReportLongImage:()=>{},downloadAuthorizedReport:()=>{},documentCss:'',
|
||||
});
|
||||
const answer='# 原始报告\n\n原始导读。\n\n## 月度趋势\n\n原始分析。\n\n| 月份 | 值 |\n|---|---|\n| 10月 | 95.46% |\n\n## 报废大类\n\n原始说明。';
|
||||
|
||||
Reference in New Issue
Block a user