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

推荐订阅源

D
Docker
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
The GitHub Blog
The GitHub Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
博客园_首页
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
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
fix: discover source-only plugins in checkouts · openclaw...
steipete · 2026-05-03 · via Recent Commits to openclaw:main

@@ -75,6 +75,27 @@ export function isLegacyPluginDependencyInstallStagePath(relativePath: string):

7575

);

7676

}

777778+

function collectExcludedPackagedExtensionDirs(rootPackageJson: unknown): Set<string> {

79+

if (!rootPackageJson || typeof rootPackageJson !== "object") {

80+

return new Set();

81+

}

82+

const files = (rootPackageJson as { files?: unknown }).files;

83+

if (!Array.isArray(files)) {

84+

return new Set();

85+

}

86+

const excluded = new Set<string>();

87+

for (const entry of files) {

88+

if (typeof entry !== "string") {

89+

continue;

90+

}

91+

const match = /^!dist\/extensions\/([^/]+)\/\*\*$/u.exec(entry);

92+

if (match?.[1]) {

93+

excluded.add(match[1]);

94+

}

95+

}

96+

return excluded;

97+

}

98+7899

function isExternalizedBundledExtensionDistPath(

79100

relativePath: string,

80101

externalizedExtensionIds: ExternalizedBundledExtensionIds,

@@ -92,65 +113,19 @@ function isExternalizedBundledExtensionDistPath(

92113

);

93114

}

9411595-

function isPublishableExternalizedBundledManifest(value: unknown): boolean {

96-

if (!value || typeof value !== "object") {

97-

return false;

98-

}

99-

const openclaw = (value as { openclaw?: unknown }).openclaw;

100-

if (!openclaw || typeof openclaw !== "object") {

101-

return false;

102-

}

103-

const release = (openclaw as { release?: unknown }).release;

104-

if (!release || typeof release !== "object") {

105-

return false;

106-

}

107-

const bundle = (openclaw as { bundle?: unknown }).bundle;

108-

if (

109-

bundle &&

110-

typeof bundle === "object" &&

111-

(bundle as { includeInCore?: unknown }).includeInCore === true

112-

) {

113-

return false;

114-

}

115-

const typedRelease = release as { publishToClawHub?: unknown; publishToNpm?: unknown };

116-

return typedRelease.publishToNpm === true || typedRelease.publishToClawHub === true;

117-

}

118-119116

async function collectExternalizedBundledExtensionIds(

120117

packageRoot: string,

121118

): Promise<ExternalizedBundledExtensionIds> {

122-

const extensionsDir = path.join(packageRoot, "extensions");

123-

let entries: import("node:fs").Dirent[];

119+

const packageJsonPath = path.join(packageRoot, "package.json");

124120

try {

125-

entries = await fs.readdir(extensionsDir, { withFileTypes: true });

121+

const parsed = JSON.parse(await fs.readFile(packageJsonPath, "utf8")) as unknown;

122+

return collectExcludedPackagedExtensionDirs(parsed);

126123

} catch (error) {

127124

if ((error as NodeJS.ErrnoException).code === "ENOENT") {

128125

return new Set();

129126

}

130127

throw error;

131128

}

132-133-

const ids = new Set<string>();

134-

await Promise.all(

135-

entries.map(async (entry) => {

136-

if (!entry.isDirectory()) {

137-

return;

138-

}

139-

const packageJsonPath = path.join(extensionsDir, entry.name, "package.json");

140-

try {

141-

const parsed = JSON.parse(await fs.readFile(packageJsonPath, "utf8")) as unknown;

142-

if (isPublishableExternalizedBundledManifest(parsed)) {

143-

ids.add(entry.name);

144-

}

145-

} catch (error) {

146-

if ((error as NodeJS.ErrnoException).code === "ENOENT") {

147-

return;

148-

}

149-

throw error;

150-

}

151-

}),

152-

);

153-

return ids;

154129

}

155130156131

function isPackagedDistPath(