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

推荐订阅源

U
Unit 42
Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
I
InfoQ
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
量子位
博客园 - 叶小钗
月光博客
月光博客
IT之家
IT之家
G
Google Developers Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享

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: keep manifest contracts on plugin index · openc...
shakkernerd · 2026-04-26 · via Recent Commits to openclaw:main

@@ -3,10 +3,7 @@ import path from "node:path";

33

import type { OpenClawConfig } from "../config/types.js";

44

import type { PluginInstallRecord } from "../config/types.plugins.js";

55

import { isBlockedObjectKey } from "../infra/prototype-keys.js";

6-

import {

7-

normalizeOptionalLowercaseString,

8-

normalizeOptionalString,

9-

} from "../shared/string-coerce.js";

6+

import { normalizeOptionalString } from "../shared/string-coerce.js";

107

import { normalizeOptionalTrimmedStringList } from "../shared/string-normalization.js";

118

import { sanitizeForLog } from "../terminal/ansi.js";

129

import { resolveUserPath } from "../utils.js";

@@ -169,90 +166,6 @@ const DEFAULT_MANIFEST_CACHE_MS = 1000;

169166170167

export { clearPluginManifestRegistryCache } from "./manifest-registry-state.js";

171168172-

function listContractValues(

173-

plugin: PluginManifestRecord,

174-

contract: PluginManifestContractListKey,

175-

): readonly string[] {

176-

return plugin.contracts?.[contract] ?? [];

177-

}

178-179-

export function resolveManifestContractPluginIds(params: {

180-

contract: PluginManifestContractListKey;

181-

origin?: PluginOrigin;

182-

config?: OpenClawConfig;

183-

workspaceDir?: string;

184-

env?: NodeJS.ProcessEnv;

185-

onlyPluginIds?: readonly string[];

186-

}): string[] {

187-

const onlyPluginIdSet =

188-

params.onlyPluginIds && params.onlyPluginIds.length > 0 ? new Set(params.onlyPluginIds) : null;

189-

return loadPluginManifestRegistry({

190-

config: params.config,

191-

workspaceDir: params.workspaceDir,

192-

env: params.env,

193-

})

194-

.plugins.filter(

195-

(plugin) =>

196-

(!params.origin || plugin.origin === params.origin) &&

197-

(!onlyPluginIdSet || onlyPluginIdSet.has(plugin.id)) &&

198-

listContractValues(plugin, params.contract).length > 0,

199-

)

200-

.map((plugin) => plugin.id)

201-

.toSorted((left, right) => left.localeCompare(right));

202-

}

203-204-

export function resolveManifestContractPluginIdsByCompatibilityRuntimePath(params: {

205-

contract: PluginManifestContractListKey;

206-

path: string | undefined;

207-

origin?: PluginOrigin;

208-

config?: OpenClawConfig;

209-

workspaceDir?: string;

210-

env?: NodeJS.ProcessEnv;

211-

}): string[] {

212-

const normalizedPath = params.path?.trim();

213-

if (!normalizedPath) {

214-

return [];

215-

}

216-

return loadPluginManifestRegistry({

217-

config: params.config,

218-

workspaceDir: params.workspaceDir,

219-

env: params.env,

220-

})

221-

.plugins.filter(

222-

(plugin) =>

223-

(!params.origin || plugin.origin === params.origin) &&

224-

listContractValues(plugin, params.contract).length > 0 &&

225-

(plugin.configContracts?.compatibilityRuntimePaths ?? []).includes(normalizedPath),

226-

)

227-

.map((plugin) => plugin.id)

228-

.toSorted((left, right) => left.localeCompare(right));

229-

}

230-231-

export function resolveManifestContractOwnerPluginId(params: {

232-

contract: PluginManifestContractListKey;

233-

value: string | undefined;

234-

origin?: PluginOrigin;

235-

config?: OpenClawConfig;

236-

workspaceDir?: string;

237-

env?: NodeJS.ProcessEnv;

238-

}): string | undefined {

239-

const normalizedValue = normalizeOptionalLowercaseString(params.value);

240-

if (!normalizedValue) {

241-

return undefined;

242-

}

243-

return loadPluginManifestRegistry({

244-

config: params.config,

245-

workspaceDir: params.workspaceDir,

246-

env: params.env,

247-

}).plugins.find(

248-

(plugin) =>

249-

(!params.origin || plugin.origin === params.origin) &&

250-

listContractValues(plugin, params.contract).some(

251-

(candidate) => normalizeOptionalLowercaseString(candidate) === normalizedValue,

252-

),

253-

)?.id;

254-

}

255-256169

function resolveManifestCacheMs(env: NodeJS.ProcessEnv): number {

257170

const raw = env.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS?.trim();

258171

if (raw === "" || raw === "0") {