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

推荐订阅源

Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
J
Java Code Geeks
博客园 - 聂微东
B
Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
腾讯CDC
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
美团技术团队
博客园 - Franky
Google DeepMind News
Google DeepMind News
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
The Cloudflare Blog

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: share skills entry fixtures · openclaw/openclaw@259...
shakkernerd · 2026-05-30 · via Recent Commits to openclaw:main
11

import { describe, expect, it } from "vitest";

2-

import { createCanonicalFixtureSkill } from "../test-support/test-helpers.js";

3-

import type { SkillEntry } from "../types.js";

2+

import { createFixtureSkillEntry } from "../test-support/test-helpers.js";

43

import {

54

buildSkillIndex,

65

buildSkillIndexEntries,

@@ -21,8 +20,8 @@ describe("skill index", () => {

21202221

it("indexes entries by exact and normalized name without changing input order", () => {

2322

const entries = [

24-

createEntry("Excel XLSX", { skillKey: "excel_xlsx" }),

25-

createEntry("GitHub Review"),

23+

createFixtureSkillEntry("Excel XLSX", { skillKey: "excel_xlsx" }),

24+

createFixtureSkillEntry("GitHub Review"),

2625

];

27262827

const index = buildSkillIndex(entries);

@@ -39,8 +38,8 @@ describe("skill index", () => {

39384039

it("keeps ambiguous normalized names as multiple index entries", () => {

4140

const entries = [

42-

createEntry("Excel/XLSX", { skillKey: "excel-slash" }),

43-

createEntry("Excel_XLSX", { skillKey: "excel-underscore" }),

41+

createFixtureSkillEntry("Excel/XLSX", { skillKey: "excel-slash" }),

42+

createFixtureSkillEntry("Excel_XLSX", { skillKey: "excel-underscore" }),

4443

];

45444645

const index = buildSkillIndex(entries);

@@ -52,28 +51,28 @@ describe("skill index", () => {

5251

});

53525453

it("centralizes runtime, prompt, and command exposure policy", () => {

55-

const runtimeHidden = createEntry("runtime-hidden", {

54+

const runtimeHidden = createFixtureSkillEntry("runtime-hidden", {

5655

exposure: {

5756

includeInRuntimeRegistry: false,

5857

includeInAvailableSkillsPrompt: true,

5958

userInvocable: true,

6059

},

6160

});

62-

const promptHidden = createEntry("prompt-hidden", {

61+

const promptHidden = createFixtureSkillEntry("prompt-hidden", {

6362

exposure: {

6463

includeInRuntimeRegistry: true,

6564

includeInAvailableSkillsPrompt: false,

6665

userInvocable: true,

6766

},

6867

});

69-

const commandHidden = createEntry("command-hidden", {

68+

const commandHidden = createFixtureSkillEntry("command-hidden", {

7069

exposure: {

7170

includeInRuntimeRegistry: true,

7271

includeInAvailableSkillsPrompt: true,

7372

userInvocable: false,

7473

},

7574

});

76-

const legacyPromptHidden = createEntry("legacy-prompt-hidden", {

75+

const legacyPromptHidden = createFixtureSkillEntry("legacy-prompt-hidden", {

7776

invocation: { disableModelInvocation: true, userInvocable: true },

7877

});

7978

@@ -108,9 +107,9 @@ describe("skill index", () => {

108107

});

109108110109

it("records source, bundled state, skill key, and agent filter state", () => {

111-

const bundled = createEntry("bundle", { source: "openclaw-bundled" });

112-

const unknownBundled = createEntry("unknown-bundle", { source: "unknown" });

113-

const workspace = createEntry("workspace", {

110+

const bundled = createFixtureSkillEntry("bundle", { source: "openclaw-bundled" });

111+

const unknownBundled = createFixtureSkillEntry("unknown-bundle", { source: "unknown" });

112+

const workspace = createFixtureSkillEntry("workspace", {

114113

source: "openclaw-workspace",

115114

skillKey: "workspace-key",

116115

});

@@ -148,30 +147,3 @@ describe("skill index", () => {

148147

]);

149148

});

150149

});

151-152-

function createEntry(

153-

name: string,

154-

opts?: {

155-

source?: string;

156-

skillKey?: string;

157-

exposure?: SkillEntry["exposure"];

158-

invocation?: SkillEntry["invocation"];

159-

},

160-

): SkillEntry {

161-

return {

162-

skill: createCanonicalFixtureSkill({

163-

name,

164-

description: `${name} description`,

165-

filePath: `/skills/${name}/SKILL.md`,

166-

baseDir: `/skills/${name}`,

167-

source: opts?.source ?? "openclaw-workspace",

168-

}),

169-

frontmatter: {},

170-

metadata: opts?.skillKey ? { skillKey: opts.skillKey } : undefined,

171-

invocation: opts?.invocation ?? {

172-

userInvocable: true,

173-

disableModelInvocation: false,

174-

},

175-

exposure: opts?.exposure,

176-

};

177-

}