惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
A
About on SuperTechFans
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
月光博客
月光博客
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
Jina AI
Jina AI
有赞技术团队
有赞技术团队
博客园_首页

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: clear line send payload broad matchers · openclaw/o...
shakkernerd · 2026-05-10 · via Recent Commits to openclaw:main

@@ -265,16 +265,16 @@ describe("line outbound sendPayload", () => {

265265

cfg,

266266

});

267267268-

expect(mocks.sendMessageLine).toHaveBeenCalledWith(

269-

"line:user:3",

270-

"",

271-

expect.objectContaining({

272-

verbose: false,

273-

mediaUrl: "https://example.com/img.jpg",

274-

accountId: "default",

275-

cfg,

276-

}),

277-

);

268+

expect(mocks.sendMessageLine).toHaveBeenCalledWith("line:user:3", "", {

269+

verbose: false,

270+

mediaUrl: "https://example.com/img.jpg",

271+

mediaKind: undefined,

272+

previewImageUrl: undefined,

273+

durationMs: undefined,

274+

trackingId: undefined,

275+

accountId: "default",

276+

cfg,

277+

});

278278

expect(mocks.pushTextMessageWithQuickReplies).toHaveBeenCalledWith(

279279

"line:user:3",

280280

"Hello",

@@ -487,76 +487,74 @@ describe("line outbound sendPayload", () => {

487487

setLineRuntime(runtime);

488488

const cfg = { channels: { line: {} } } as OpenClawConfig;

489489490-

await expect(

491-

verifyChannelMessageAdapterCapabilityProofs({

492-

adapterName: "line",

493-

adapter: linePlugin.message!,

494-

proofs: {

495-

text: async () => {

496-

const result = await linePlugin.message?.send?.text?.({

497-

cfg,

498-

to: "line:user:U123",

499-

text: "hello",

500-

accountId: "primary",

501-

});

502-

expect(mocks.pushMessageLine).toHaveBeenCalledWith("line:user:U123", "hello", {

503-

verbose: false,

504-

accountId: "primary",

505-

cfg,

506-

});

507-

expect(result?.receipt.platformMessageIds).toEqual(["m-text"]);

508-

},

509-

media: async () => {

510-

const result = await linePlugin.message?.send?.media?.({

511-

cfg,

512-

to: "line:user:U123",

513-

text: "image",

514-

mediaUrl: "https://example.com/image.jpg",

515-

accountId: "primary",

516-

});

517-

expect(mocks.sendMessageLine).toHaveBeenCalledWith("line:user:U123", "", {

518-

verbose: false,

519-

mediaUrl: "https://example.com/image.jpg",

520-

accountId: "primary",

521-

cfg,

522-

});

523-

expect(result?.receipt.platformMessageIds).toEqual(["m-media"]);

524-

},

525-

messageSendingHooks: () => {

526-

expect(linePlugin.message?.send?.text).toBeTypeOf("function");

527-

},

490+

const proofResults = await verifyChannelMessageAdapterCapabilityProofs({

491+

adapterName: "line",

492+

adapter: linePlugin.message!,

493+

proofs: {

494+

text: async () => {

495+

const result = await linePlugin.message?.send?.text?.({

496+

cfg,

497+

to: "line:user:U123",

498+

text: "hello",

499+

accountId: "primary",

500+

});

501+

expect(mocks.pushMessageLine).toHaveBeenCalledWith("line:user:U123", "hello", {

502+

verbose: false,

503+

accountId: "primary",

504+

cfg,

505+

});

506+

expect(result?.receipt.platformMessageIds).toEqual(["m-text"]);

528507

},

529-

}),

530-

).resolves.toEqual(

531-

expect.arrayContaining([

532-

{ capability: "text", status: "verified" },

533-

{ capability: "media", status: "verified" },

534-

{ capability: "messageSendingHooks", status: "verified" },

535-

]),

508+

media: async () => {

509+

const result = await linePlugin.message?.send?.media?.({

510+

cfg,

511+

to: "line:user:U123",

512+

text: "image",

513+

mediaUrl: "https://example.com/image.jpg",

514+

accountId: "primary",

515+

});

516+

expect(mocks.sendMessageLine).toHaveBeenCalledWith("line:user:U123", "", {

517+

verbose: false,

518+

mediaUrl: "https://example.com/image.jpg",

519+

accountId: "primary",

520+

cfg,

521+

});

522+

expect(result?.receipt.platformMessageIds).toEqual(["m-media"]);

523+

},

524+

messageSendingHooks: () => {

525+

expect(linePlugin.message?.send?.text).toBeTypeOf("function");

526+

},

527+

},

528+

});

529+530+

expect(proofResults.find((result) => result.capability === "text")?.status).toBe("verified");

531+

expect(proofResults.find((result) => result.capability === "media")?.status).toBe("verified");

532+

expect(proofResults.find((result) => result.capability === "messageSendingHooks")?.status).toBe(

533+

"verified",

536534

);

537535

});

538536539537

it("declares receive ack policies for deferred LINE webhook acknowledgement", async () => {

540-

await expect(

541-

verifyChannelMessageReceiveAckPolicyAdapterProofs({

542-

adapterName: "line",

543-

adapter: linePlugin.message!,

544-

proofs: {

545-

after_receive_record: () => {

546-

expect(linePlugin.message?.receive?.supportedAckPolicies).toContain(

547-

"after_receive_record",

548-

);

549-

},

550-

after_agent_dispatch: () => {

551-

expect(linePlugin.message?.receive?.defaultAckPolicy).toBe("after_agent_dispatch");

552-

},

538+

const proofResults = await verifyChannelMessageReceiveAckPolicyAdapterProofs({

539+

adapterName: "line",

540+

adapter: linePlugin.message!,

541+

proofs: {

542+

after_receive_record: () => {

543+

expect(linePlugin.message?.receive?.supportedAckPolicies).toContain(

544+

"after_receive_record",

545+

);

553546

},

554-

}),

555-

).resolves.toEqual(

556-

expect.arrayContaining([

557-

{ policy: "after_receive_record", status: "verified" },

558-

{ policy: "after_agent_dispatch", status: "verified" },

559-

]),

547+

after_agent_dispatch: () => {

548+

expect(linePlugin.message?.receive?.defaultAckPolicy).toBe("after_agent_dispatch");

549+

},

550+

},

551+

});

552+553+

expect(proofResults.find((result) => result.policy === "after_receive_record")?.status).toBe(

554+

"verified",

555+

);

556+

expect(proofResults.find((result) => result.policy === "after_agent_dispatch")?.status).toBe(

557+

"verified",

560558

);

561559

});

562560

});