fix: 对比图像相对位置字段正名(被搜索图像/查找目标小图)+填反自动互换兜底, 补OCR与相对位置冒烟回归

这个提交包含在:
yu 于 2026-11-03 14:59:33 +08:00 提交
1 父节点 9ec301b081
当前提交 c973209418
4 个文件已更改
+88 -10

没有与搜索条件相匹配的文件

+3 -2
查看文件
@@ -1,6 +1,7 @@
import { describe, expect, it } from "vitest";
import { getHandler } from "../engine/registry";
import type { CatalogComponent, RunContext } from "../engine/types";
import type { CatalogComponent, FlowNode } from "../../shared/types";
import type { RunContext } from "../engine/types";
import "./ocr-caps";
import "./remaining-core";
@@ -11,7 +12,7 @@ const ctx = {
evidenceDir: "D:/office-test2/ocr-test"
} as unknown as RunContext;
const node = { id: "smoke", componentId: "smoke" };
const node = { id: "smoke", componentId: "smoke", position: { x: 0, y: 0 }, values: {}, options: {} };
async function runOcr(id: string, args: Record<string, unknown>) {
const handler = getHandler(id);