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

推荐订阅源

WordPress大学
WordPress大学
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
V
V2EX
MyScale Blog
MyScale 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
fix: honor skill source install aliases (#84842) · opencl...
Patrick-Eric · 2026-05-26 · via Recent Commits to openclaw:main

@@ -23,6 +23,7 @@ import { resolvePluginSkillDirs } from "./plugin-skills.js";

2323

import { serializeByKey } from "./serialize.js";

2424

import { formatSkillsForPrompt, type Skill } from "./skill-contract.js";

2525

import type {

26+

OpenClawSkillMetadata,

2627

ParsedSkillFrontmatter,

2728

SkillEligibilityContext,

2829

SkillEntry,

@@ -31,6 +32,8 @@ import type {

31323233

const fsp = fs.promises;

3334

const skillsLogger = createSubsystemLogger("skills");

35+

const SKILL_SOURCE_ORIGIN_RELATIVE_PATH = path.join(".openclaw", "source-origin.json");

36+

const MAX_SKILL_SOURCE_ORIGIN_BYTES = 16 * 1024;

34373538

/**

3639

* Replace the user's home directory prefix with `~` in skill file paths

@@ -407,6 +410,48 @@ function loadContainedSkillRecords(params: {

407410

: records;

408411

}

409412413+

function readSourceInstallSkillKey(skillDir: string): string | undefined {

414+

try {

415+

const sourceOriginPath = path.join(skillDir, SKILL_SOURCE_ORIGIN_RELATIVE_PATH);

416+

const stat = fs.lstatSync(sourceOriginPath);

417+

if (!stat.isFile() || stat.isSymbolicLink() || stat.size > MAX_SKILL_SOURCE_ORIGIN_BYTES) {

418+

return undefined;

419+

}

420+

const skillDirRealPath = tryRealpath(skillDir);

421+

const sourceOriginRealPath = tryRealpath(sourceOriginPath);

422+

if (

423+

!skillDirRealPath ||

424+

!sourceOriginRealPath ||

425+

!isPathInside(skillDirRealPath, sourceOriginRealPath)

426+

) {

427+

return undefined;

428+

}

429+

const raw = fs.readFileSync(sourceOriginPath, "utf8");

430+

const parsed = JSON.parse(raw) as { slug?: unknown };

431+

return normalizeOptionalString(parsed.slug);

432+

} catch {

433+

return undefined;

434+

}

435+

}

436+437+

function resolveSkillEntryMetadata(params: {

438+

frontmatter: ParsedSkillFrontmatter;

439+

skillDir: string;

440+

}): OpenClawSkillMetadata | undefined {

441+

const metadata = resolveOpenClawMetadata(params.frontmatter);

442+

if (metadata?.skillKey) {

443+

return metadata;

444+

}

445+

const sourceInstallSkillKey = readSourceInstallSkillKey(params.skillDir);

446+

if (!sourceInstallSkillKey) {

447+

return metadata;

448+

}

449+

return {

450+

...metadata,

451+

skillKey: sourceInstallSkillKey,

452+

};

453+

}

454+410455

function canonicalizeLoadedSkillRecord(

411456

record: LoadedSkillRecord,

412457

canonicalSkillDir: string,

@@ -932,7 +977,7 @@ function loadSkillEntries(

932977

return {

933978

skill,

934979

frontmatter,

935-

metadata: resolveOpenClawMetadata(frontmatter),

980+

metadata: resolveSkillEntryMetadata({ frontmatter, skillDir: skill.baseDir }),

936981

invocation,

937982

...(record.syncSourceDir !== undefined ? { syncSourceDir: record.syncSourceDir } : {}),

938983

...(record.syncDirName !== undefined ? { syncDirName: record.syncDirName } : {}),