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

推荐订阅源

美团技术团队
J
Java Code Geeks
有赞技术团队
有赞技术团队
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
G
Google Developers Blog
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
腾讯CDC
V
Visual Studio Blog
博客园 - 【当耐特】
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
L
LangChain 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
refactor(skills): trim loader export surface · openclaw/o...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -12,7 +12,7 @@ function pathFor(platform: NodeJS.Platform) {

1212

// "not logged in", even though the operator HOME has a valid hosts.yml.

1313

// See https://github.com/openclaw/openclaw/issues/78063.

1414
15-

export type GhConfigDiscoveryEnv = {

15+

type GhConfigDiscoveryEnv = {

1616

HOME?: string;

1717

XDG_CONFIG_HOME?: string;

1818

GH_CONFIG_DIR?: string;

Original file line numberDiff line numberDiff line change

@@ -8,7 +8,7 @@ let hasWarnedMissingBundledDir = false;

88

let cachedBundledContext: { dir: string; names: Set<string> } | null = null;

99
1010

/** Bundled skill path context resolved from runtime defaults. */

11-

export type BundledSkillsContext = {

11+

type BundledSkillsContext = {

1212

dir?: string;

1313

names: Set<string>;

1414

};

Original file line numberDiff line numberDiff line change

@@ -10,8 +10,6 @@ import {

1010

evaluateRuntimeEligibility,

1111

hasBinary,

1212

isConfigPathTruthyWithDefaults,

13-

resolveConfigPath,

14-

resolveRuntimePlatform,

1513

} from "../../shared/config-eval.js";

1614

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

1715

import { resolveSkillKey } from "./frontmatter.js";

@@ -23,7 +21,7 @@ const DEFAULT_CONFIG_VALUES: Record<string, boolean> = {

2321

};

2422
2523

/** Platform helpers re-exported for skill loading callers and tests. */

26-

export { hasBinary, resolveConfigPath, resolveRuntimePlatform };

24+

export { hasBinary };

2725
2826

export function resolveSkillsInstallPreferences(config?: OpenClawConfig): SkillsInstallPreferences {

2927

const raw = config?.skills?.install;

Original file line numberDiff line numberDiff line change

@@ -292,4 +292,3 @@ export const testing = {

292292

publishPluginSkills,

293293

resolvePluginSkillLinkType,

294294

};

295-

export { testing as __testing };

Original file line numberDiff line numberDiff line change

@@ -1,9 +1,6 @@

11

// Skill contract types describe loaded skill metadata, sources, and prompt surfaces.

22

import type { SourceInfo } from "../../agents/sessions/source-info.js";

33
4-

export type SourceScope = "user" | "project" | "temporary";

5-

export type SourceOrigin = "package" | "top-level";

6-
74

export interface Skill {

85

name: string;

96

description: string;

@@ -17,23 +14,7 @@ export interface Skill {

1714

source: string;

1815

}

1916
20-

export function createSyntheticSourceInfo(

21-

path: string,

22-

options: {

23-

source: string;

24-

scope?: SourceScope;

25-

origin?: SourceOrigin;

26-

baseDir?: string;

27-

},

28-

): SourceInfo {

29-

return {

30-

path,

31-

source: options.source,

32-

scope: options.scope ?? "temporary",

33-

origin: options.origin ?? "top-level",

34-

baseDir: options.baseDir,

35-

};

36-

}

17+

export { createSyntheticSourceInfo } from "../../agents/sessions/source-info.js";

3718
3819

function escapeXml(str: string): string {

3920

return str

Original file line numberDiff line numberDiff line change

@@ -31,13 +31,6 @@ export function findContainingAllowedSkillSymlinkTarget(

3131

return null;

3232

}

3333
34-

export function isPathInsideAnyAllowedSkillSymlinkTarget(

35-

rootRealPaths: readonly string[],

36-

candidateRealPath: string,

37-

): boolean {

38-

return findContainingAllowedSkillSymlinkTarget(rootRealPaths, candidateRealPath) !== null;

39-

}

40-
4134

export function tryRealpath(filePath: string): string | null {

4235

try {

4336

return fs.realpathSync(filePath);