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

推荐订阅源

U
Unit 42
博客园 - 司徒正美
V
Visual Studio Blog
博客园 - 【当耐特】
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Jina AI
Jina AI
宝玉的分享
宝玉的分享
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC

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): resolve `skills info` name mismatches (#3871...
NewdlDewdl · 2026-05-19 · via Recent Commits to openclaw:main

@@ -180,46 +180,66 @@ describe("skills-cli", () => {

180180

expect(output).toContain("API_KEY");

181181

});

182182183-

it("shows API key storage guidance for the active config path", () => {

183+

it("resolves skill info case-insensitively", () => {

184184

const report = createMockReport([

185185

createMockSkill({

186-

name: "env-aware-skill",

187-

skillKey: "env-aware-skill",

188-

primaryEnv: "API_KEY",

189-

eligible: false,

190-

requirements: {

191-

bins: [],

192-

anyBins: [],

193-

env: ["API_KEY"],

194-

config: [],

195-

os: [],

196-

},

197-

missing: {

198-

bins: [],

199-

anyBins: [],

200-

env: ["API_KEY"],

201-

config: [],

202-

os: [],

203-

},

186+

name: "Excel XLSX",

187+

skillKey: "Excel-XLSX",

188+

description: "Spreadsheet helpers",

204189

}),

205190

]);

206191207-

const output = formatSkillInfo(report, "env-aware-skill", {});

208-

expect(output).toContain("OPENCLAW_CONFIG_PATH");

209-

expect(output).toContain("default: ~/.openclaw/openclaw.json");

210-

expect(output).toContain("skills.entries.env-aware-skill.apiKey");

192+

const output = formatSkillInfo(report, "excel-xlsx", {});

193+

expect(output).toContain("Spreadsheet helpers");

211194

});

212195213-

it("normalizes text-presentation emoji selectors in info output", () => {

196+

it("resolves skill info across separator variants", () => {

214197

const report = createMockReport([

215198

createMockSkill({

216-

name: "info-emoji",

217-

emoji: "🎛\uFE0E",

199+

name: "Excel XLSX",

200+

skillKey: "excel_xlsx",

201+

description: "Spreadsheet helpers",

218202

}),

219203

]);

220204221-

const output = formatSkillInfo(report, "info-emoji", {});

222-

expect(output).toContain("🎛️");

205+

const output = formatSkillInfo(report, "excel-xlsx", {});

206+

expect(output).toContain("Spreadsheet helpers");

207+

});

208+209+

it("returns not found for ambiguous case-insensitive matches", () => {

210+

const report = createMockReport([

211+

createMockSkill({ name: "First Skill", skillKey: "Excel-XLSX", description: "first" }),

212+

createMockSkill({ name: "Second Skill", skillKey: "excel-xlsx", description: "second" }),

213+

]);

214+215+

const output = formatSkillInfo(report, "EXCEL-XLSX", {});

216+

expect(output).toContain("not found");

217+

expect(output).not.toContain("first");

218+

expect(output).not.toContain("second");

219+

});

220+221+

it("returns not found for ambiguous normalized matches", () => {

222+

const report = createMockReport([

223+

createMockSkill({ name: "Excel/XLSX", skillKey: "excel-slash", description: "first" }),

224+

createMockSkill({

225+

name: "Excel_XLSX",

226+

skillKey: "excel-underscore",

227+

description: "second",

228+

}),

229+

]);

230+231+

const output = formatSkillInfo(report, "excel-xlsx", {});

232+

expect(output).toContain("not found");

233+

expect(output).not.toContain("first");

234+

expect(output).not.toContain("second");

235+

});

236+237+

it("sanitizes user-supplied skill name in not-found text output", () => {

238+

const report = createMockReport([]);

239+

const output = formatSkillInfo(report, "evil\u001b[31m\u009f", {});

240+241+

expect(output).toContain('Skill "evil" not found');

242+

expect(output).not.toContain("\u001b");

223243

});

224244225245

it("shows agent exclusion and visibility details in skill info", () => {

@@ -482,5 +502,15 @@ describe("skills-cli", () => {

482502

expect(parsed.description).toBe("hi");

483503

expect(parsed.homepage).toBe("https://example.com/docs");

484504

});

505+506+

it("sanitizes user-supplied skill name in not-found JSON output", () => {

507+

const report = createMockReport([]);

508+

const output = formatSkillInfo(report, "evil\u001b[31m\u009f", { json: true });

509+

const parsed = JSON.parse(output) as { error: string; skill: string };

510+511+

expect(parsed.error).toBe("not found");

512+

expect(parsed.skill).toBe("evil");

513+

expect(output).not.toContain("\u001b");

514+

});

485515

});

486516

});