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

推荐订阅源

Google DeepMind News
Google DeepMind News
C
Check Point Blog
J
Java Code Geeks
腾讯CDC
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
罗磊的独立博客
Last Week in AI
Last Week in AI
B
Blog
IT之家
IT之家
S
SegmentFault 最新的问题
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - 聂微东
U
Unit 42
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
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
ci: allow package plugin metadata migrations · openclaw/o...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -141,31 +141,74 @@ if [ \"\$registry_ready\" -ne 1 ]; then

141141

exit 1

142142

fi

143143144-

before_hash=\$(node --input-type=module -e '

145-

import crypto from \"node:crypto\";

144+

node --input-type=module > /tmp/plugin-update-before.json <<'NODE'

146145

import fs from \"node:fs\";

147146

import os from \"node:os\";

148147

import path from \"node:path\";

149-

const file = path.join(os.homedir(), \".openclaw\", \"openclaw.json\");

150-

process.stdout.write(crypto.createHash(\"sha256\").update(fs.readFileSync(file)).digest(\"hex\"));

151-

')

148+149+

const readJson = (file) => {

150+

try {

151+

return JSON.parse(fs.readFileSync(file, \"utf8\"));

152+

} catch {

153+

return {};

154+

}

155+

};

156+

const home = os.homedir();

157+

const config = readJson(path.join(home, \".openclaw\", \"openclaw.json\"));

158+

const index = readJson(path.join(home, \".openclaw\", \"plugins\", \"installs.json\"));

159+

const records = index.installRecords ?? index.records ?? config.plugins?.installs ?? {};

160+

const record = records[\"lossless-claw\"] ?? records[\"@example/lossless-claw\"];

161+

if (!record) {

162+

throw new Error(\"missing seeded plugin install record\");

163+

}

164+

const snapshot = {

165+

source: record.source,

166+

spec: record.spec,

167+

resolvedName: record.resolvedName,

168+

resolvedVersion: record.resolvedVersion,

169+

resolvedSpec: record.resolvedSpec,

170+

integrity: record.integrity,

171+

shasum: record.shasum

172+

};

173+

process.stdout.write(JSON.stringify(snapshot, null, 2));

174+

NODE

152175153176

node \"\$entry\" plugins update @example/lossless-claw > /tmp/plugin-update-output.log 2>&1

154177155-

after_hash=\$(node --input-type=module -e '

156-

import crypto from \"node:crypto\";

178+

node --input-type=module <<'NODE'

157179

import fs from \"node:fs\";

158180

import os from \"node:os\";

159181

import path from \"node:path\";

160-

const file = path.join(os.homedir(), \".openclaw\", \"openclaw.json\");

161-

process.stdout.write(crypto.createHash(\"sha256\").update(fs.readFileSync(file)).digest(\"hex\"));

162-

')

163182164-

if [ \"\$before_hash\" != \"\$after_hash\" ]; then

165-

echo \"Config changed unexpectedly\"

166-

cat /tmp/plugin-update-output.log

167-

exit 1

168-

fi

183+

const readJson = (file) => {

184+

try {

185+

return JSON.parse(fs.readFileSync(file, \"utf8\"));

186+

} catch {

187+

return {};

188+

}

189+

};

190+

const home = os.homedir();

191+

const before = readJson(\"/tmp/plugin-update-before.json\");

192+

const config = readJson(path.join(home, \".openclaw\", \"openclaw.json\"));

193+

const index = readJson(path.join(home, \".openclaw\", \"plugins\", \"installs.json\"));

194+

const records = index.installRecords ?? index.records ?? config.plugins?.installs ?? {};

195+

const record = records[\"lossless-claw\"] ?? records[\"@example/lossless-claw\"];

196+

if (!record) {

197+

throw new Error(\"missing plugin install record after update\");

198+

}

199+

const after = {

200+

source: record.source,

201+

spec: record.spec,

202+

resolvedName: record.resolvedName,

203+

resolvedVersion: record.resolvedVersion,

204+

resolvedSpec: record.resolvedSpec,

205+

integrity: record.integrity,

206+

shasum: record.shasum

207+

};

208+

if (JSON.stringify(before) !== JSON.stringify(after)) {

209+

throw new Error("plugin install record changed unexpectedly: " + JSON.stringify({ before, after }));

210+

}

211+

NODE

169212

if grep -q 'Downloading @example/lossless-claw' /tmp/plugin-update-output.log; then

170213

echo \"Unexpected npm download/reinstall path\"

171214

cat /tmp/plugin-update-output.log