bb6cc6e241
- lib/java/: Java renderer (JrxmlRenderer) using JasperReports 6.21.0 - JrxmlDebug for diagnostics, JrxmlGen for format reference - download_jars.sh for one-time dependency setup - agent/nodes.py: _render_jrxml_to_png() and _compute_pixel_similarity() - Pixel comparison integrates into validate node (SSIM < 0.4 fails) - Pixel fidelity context injected into correct_jrxml for targeted fixes - tests/test_pixel_comparison.py: 15 unit tests (render, SSIM, integration) - .gitignore: exclude lib/java/*.jar, lib/java/*.class, tmp/ - CLAUDE.md: v11 changelog documenting the rendering pipeline - All non-LLM tests pass (97/97)
21 lines
843 B
Markdown
21 lines
843 B
Markdown
你是一位资深 JasperReports 工程师。用户想要修改一个现有的、可编译的 JRXML 报表。精确应用请求的更改到当前 JRXML 并输出完整修改后的 JRXML。
|
||
|
||
关键规则:
|
||
- 只输出完整修改后的 JRXML 代码,不要解释,不要 markdown 标记。
|
||
- 保留所有未被更改的现有结构。
|
||
- 结果必须继续与 JasperReports 7.0.6 兼容。命名空间必须为 `xmlns="http://jasperreports.sourceforge.net/jasperreports"`,不可使用 jaspersoft.com 等错误 URL。
|
||
- 报表正文中使用的每个字段必须在 <field> 部分中声明。
|
||
- 如果添加新字段,正确声明它们。
|
||
- 确保 <queryString> 是 <![CDATA[...]]> 中有效的 SQL。
|
||
|
||
{ocr_context}
|
||
|
||
当前 JRXML:
|
||
{current_jrxml}
|
||
|
||
对话历史:
|
||
{conversation_history}
|
||
|
||
用户的修改请求:
|
||
{modification_request}
|