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

推荐订阅源

G
Google Developers Blog
博客园 - 聂微东
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
D
Docker
B
Blog
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
月光博客
月光博客
F
Fortinet All Blogs
爱范儿
爱范儿
H
Help Net Security
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
The Cloudflare Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
U
Unit 42

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(e2e): require kitchen sink tool coverage · openclaw/...
vincentkoc · 2026-06-03 · via Recent Commits to openclaw:main

@@ -936,7 +936,7 @@ export function extractPluginCommandNames(payload) {

936936

.toSorted((left, right) => left.localeCompare(right));

937937

}

938938939-

function extractToolEntries(payload) {

939+

export function extractToolEntries(payload) {

940940

return (Array.isArray(payload?.groups) ? payload.groups : []).flatMap((group) =>

941941

Array.isArray(group?.tools) ? group.tools : [],

942942

);

@@ -959,6 +959,31 @@ function assertIncludesAll(actual, expected, label) {

959959

}

960960

}

961961962+

export function assertExpectedKitchenSinkToolEntries(

963+

entries,

964+

label,

965+

{ requirePluginProvenance = false } = {},

966+

) {

967+

const ids = entries.map((entry) => entry?.id).filter(isNonEmptyString);

968+

assertIncludesAll(ids, EXPECTED_TOOLS, label);

969+

if (requirePluginProvenance) {

970+

const wrongProvenance = entries

971+

.filter((entry) => EXPECTED_TOOLS.includes(entry?.id))

972+

.filter((entry) => entry.source !== "plugin" || entry.pluginId !== PLUGIN_ID)

973+

.map((entry) => ({

974+

id: entry?.id,

975+

pluginId: entry?.pluginId,

976+

source: entry?.source,

977+

}));

978+

if (wrongProvenance.length > 0) {

979+

throw new Error(

980+

`${label} plugin provenance mismatch: ${JSON.stringify(wrongProvenance)}`,

981+

);

982+

}

983+

}

984+

return ids;

985+

}

986+962987

function assertChannelAccountRunning(payload) {

963988

const accounts = Array.isArray(payload?.channelAccounts?.[CHANNEL_ID])

964989

? payload.channelAccounts[CHANNEL_ID]

@@ -970,13 +995,27 @@ function assertChannelAccountRunning(payload) {

970995

return account;

971996

}

972997973-

function assertToolInvokeResult(payload) {

998+

export function assertKitchenSinkSearchInvokeResult(payload) {

974999

if (payload?.ok !== true || payload?.source !== "plugin") {

975-

throw new Error(`Kitchen Sink tool invoke failed: ${JSON.stringify(payload)}`);

1000+

throw new Error(`Kitchen Sink search tool invoke failed: ${JSON.stringify(payload)}`);

9761001

}

9771002

const text = JSON.stringify(payload.output ?? payload);

9781003

if (!text.includes("Kitchen Sink image fixture")) {

979-

throw new Error(`Kitchen Sink tool output missed expected fixture: ${text.slice(0, 1000)}`);

1004+

throw new Error(

1005+

`Kitchen Sink search tool output missed expected fixture: ${text.slice(0, 1000)}`,

1006+

);

1007+

}

1008+

}

1009+1010+

export function assertKitchenSinkTextInvokeResult(payload) {

1011+

if (payload?.ok !== true || payload?.source !== "plugin") {

1012+

throw new Error(`Kitchen Sink text tool invoke failed: ${JSON.stringify(payload)}`);

1013+

}

1014+

const text = JSON.stringify(payload.output ?? payload);

1015+

if (!text.includes("tool:kitchen_sink_text") || !text.includes("Kitchen Sink")) {

1016+

throw new Error(

1017+

`Kitchen Sink text tool output missed expected fixture: ${text.slice(0, 1000)}`,

1018+

);

9801019

}

9811020

}

9821021

@@ -1608,12 +1647,11 @@ export async function main() {

16081647

rpcOptions,

16091648

);

16101649

const catalogTools = extractToolEntries(catalog);

1611-

const catalogToolIds = catalogTools.map((entry) => entry?.id).filter(isNonEmptyString);

1612-

assertIncludesAny(catalogToolIds, EXPECTED_TOOLS, "tools.catalog plugin tools");

1613-

const pluginTool = catalogTools.find((entry) => EXPECTED_TOOLS.includes(entry?.id));

1614-

if (pluginTool?.source !== "plugin" || pluginTool?.pluginId !== PLUGIN_ID) {

1615-

throw new Error(`tools.catalog plugin provenance missing: ${JSON.stringify(pluginTool)}`);

1616-

}

1650+

const catalogToolIds = assertExpectedKitchenSinkToolEntries(

1651+

catalogTools,

1652+

"tools.catalog plugin tools",

1653+

{ requirePluginProvenance: true },

1654+

);

1617165516181656

const createdSession = await retryRpcCall(

16191657

"sessions.create",

@@ -1625,10 +1663,12 @@ export async function main() {

16251663

{ sessionKey: createdSession.key, agentId: "main" },

16261664

rpcOptions,

16271665

);

1628-

const effectiveToolIds = extractToolEntries(effective).map((entry) => entry?.id);

1629-

assertIncludesAny(effectiveToolIds, EXPECTED_TOOLS, "tools.effective plugin tools");

1666+

assertExpectedKitchenSinkToolEntries(

1667+

extractToolEntries(effective),

1668+

"tools.effective plugin tools",

1669+

);

163016701631-

const invoked = await retryRpcCall(

1671+

const searchInvoked = await retryRpcCall(

16321672

"tools.invoke",

16331673

{

16341674

name: "kitchen_sink_search",

@@ -1639,7 +1679,20 @@ export async function main() {

16391679

},

16401680

rpcOptions,

16411681

);

1642-

assertToolInvokeResult(invoked);

1682+

assertKitchenSinkSearchInvokeResult(searchInvoked);

1683+1684+

const textInvoked = await retryRpcCall(

1685+

"tools.invoke",

1686+

{

1687+

name: "kitchen_sink_text",

1688+

args: { prompt: "explain kitchen sink rpc walk" },

1689+

sessionKey: createdSession.key,

1690+

agentId: "main",

1691+

idempotencyKey: "kitchen-sink-rpc-text",

1692+

},

1693+

rpcOptions,

1694+

);

1695+

assertKitchenSinkTextInvokeResult(textInvoked);

1643169616441697

const ttsProviders = await retryRpcCall("tts.providers", {}, rpcOptions);

16451698

const ttsStatus = await retryRpcCall("tts.status", {}, rpcOptions);