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

推荐订阅源

S
SegmentFault 最新的问题
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
月光博客
月光博客
IT之家
IT之家
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
小众软件
小众软件
C
Check Point Blog
B
Blog RSS Feed
H
Help Net Security
博客园 - 司徒正美
L
LangChain Blog
MongoDB | Blog
MongoDB | Blog
B
Blog
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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
fix(skills): parse remote which bin maps · openclaw/openc...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -297,4 +297,69 @@ describe("skills-remote", () => {

297297

fs.rmSync(workspaceDir, { recursive: true, force: true });

298298

}

299299

});

300+301+

it("records bins from system.which object-map responses", async () => {

302+

await resetSkillsRefreshForTest();

303+

const workspaceDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-remote-skills-"));

304+

const nodeId = `node-${randomUUID()}`;

305+

const bin = `bin-${randomUUID()}`;

306+

try {

307+

fs.mkdirSync(path.join(workspaceDir, "remote-skill"), { recursive: true });

308+

fs.writeFileSync(

309+

path.join(workspaceDir, "remote-skill", "SKILL.md"),

310+

[

311+

"---",

312+

"name: remote-skill",

313+

"description: Needs a remote bin",

314+

`metadata: { "openclaw": { "os": ["darwin"], "requires": { "bins": ["${bin}"] } } }`,

315+

"---",

316+

"# Remote Skill",

317+

"",

318+

].join("\n"),

319+

);

320+

const cfg = {

321+

agents: {

322+

defaults: {

323+

workspace: workspaceDir,

324+

},

325+

},

326+

} satisfies OpenClawConfig;

327+

const invokeCalls: string[] = [];

328+

setSkillsRemoteRegistry({

329+

listConnected: () => [],

330+

get: () => undefined,

331+

invoke: async (params: { command: string }) => {

332+

invokeCalls.push(params.command);

333+

return {

334+

ok: true,

335+

payload: { bins: { [bin]: `/opt/homebrew/bin/${bin}`, missing: "" } },

336+

payloadJSON: JSON.stringify({ bins: { [bin]: `/opt/homebrew/bin/${bin}` } }),

337+

};

338+

},

339+

} as unknown as NodeRegistry);

340+

recordRemoteNodeInfo({

341+

nodeId,

342+

displayName: "Remote Mac",

343+

platform: "darwin",

344+

commands: ["system.run", "system.which"],

345+

});

346+

const before = getSkillsSnapshotVersion(workspaceDir);

347+348+

await refreshRemoteNodeBins({

349+

nodeId,

350+

platform: "darwin",

351+

commands: ["system.run", "system.which"],

352+

cfg,

353+

timeoutMs: 10,

354+

});

355+356+

expect(invokeCalls).toEqual(["system.which"]);

357+

expect(getRemoteSkillEligibility()?.hasBin(bin)).toBe(true);

358+

expect(getRemoteSkillEligibility()?.hasBin("missing")).toBe(false);

359+

expect(getSkillsSnapshotVersion(workspaceDir)).toBeGreaterThan(before);

360+

} finally {

361+

removeRemoteNodeInfo(nodeId);

362+

fs.rmSync(workspaceDir, { recursive: true, force: true });

363+

}

364+

});

300365

});