merge: 合入 main(PR #4 搜索 API + MCP 截图识别),解决 .gitignore 冲突

This commit is contained in:
ABAPPLO
2026-08-27 16:32:03 +08:00
15 changed files with 358 additions and 37 deletions

View File

@@ -6,7 +6,7 @@ import {
parseStoredDate,
} from "../lib/date-utils.ts";
test("treats D1 CURRENT_TIMESTAMP values as UTC and displays Beijing time", () => {
test("treats D1 and MySQL UTC timestamps as UTC and displays Beijing time", () => {
const stored = "2026-07-29 05:36:00";
assert.equal(parseStoredDate(stored).toISOString(), "2026-07-29T05:36:00.000Z");
assert.match(formatShanghaiDate(stored, true), /07\/29.*13:36/);

View File

@@ -520,7 +520,7 @@ test("surfaces current detail tool failures without calling removed tools", asyn
},
fetchImpl,
),
/获取内容详情失败/,
/MCP工具 fetch_content_detail 返回失败(code 400):获取内容详情失败/,
);
assert.equal(calls.length, 3);
assert.equal(calls[2].body.params.name, "fetch_content_detail");

View File

@@ -190,8 +190,9 @@ test("issues external task links and supports one-to-one note submissions", asyn
assert.doesNotMatch(partnerUtils, /user\/profile\/\$\{platformUid\}/);
assert.match(uploadRoute, /publish-evidence/);
assert.match(uploadRoute, /creator-center/);
assert.match(uploadRoute, /ELSE 'uploaded'/);
assert.doesNotMatch(uploadRoute, /ocrMetric/);
assert.match(uploadRoute, /ELSE 'processing'/);
assert.match(uploadRoute, /extractCreatorMetricsFromMcp/);
assert.match(uploadRoute, /creatorScreenshotMcpUrl/);
assert.match(uploadRoute, /x-koc-upload-kind/);
assert.match(uploadRoute, /x-koc-distribution/);
assert.match(uploadRoute, /request\.arrayBuffer/);
@@ -223,7 +224,7 @@ test("issues external task links and supports one-to-one note submissions", asyn
assert.match(adminApp, /全部内容类型/);
assert.match(adminApp, /全部平台/);
assert.match(adminApp, /task-scope-subline/);
assert.match(adminApp, /待KOC填写数据/);
assert.match(adminApp, /识别失败,请手动填写/);
assert.match(adminApp, /AdminImageLightbox/);
assert.match(adminApp, /CreatorScreenshotPreview/);
assert.match(adminApp, /admin-image-lightbox/);