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

推荐订阅源

F
Full Disclosure
Recorded Future
Recorded Future
T
Tenable Blog
S
Securelist
C
CERT Recently Published Vulnerability Notes
T
Threatpost
S
Schneier on Security
A
Arctic Wolf
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Register - Security
The Register - Security
Cisco Talos Blog
Cisco Talos Blog
AWS News Blog
AWS News Blog
K
Kaspersky official blog
T
True Tiger Recordings
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
小众软件
小众软件
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Spread Privacy
Spread Privacy
Malwarebytes
Malwarebytes
P
Proofpoint News Feed
F
Fox-IT International blog
F
Fortinet All Blogs
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
量子位
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
Project Zero
Project Zero
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
I
Intezer
博客园_首页
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Darknet – Hacking Tools, Hacker News & Cyber Security

Recent Commits to openclaw:main

fix(ci): bound real behavior proof API waits · openclaw/openclaw@4a8d89f fix(gateway): reject no-auth tailscale exposure · openclaw/openclaw@dc5954b fix(agents): avoid false Codex runtime live switches perf(gateway): trust current metadata lifecycle cache chore(release): update appcast for 2026.5.26 · openclaw/openclaw@c95b51f refactor: move channel message sdk compat into core · openclaw/openclaw@8e5183c ci(release): accept main full-validation proof · openclaw/openclaw@1e67af7 ci(release): harden postpublish verification · openclaw/openclaw@ef17bba fix(cli): reject malformed gateway timeouts · openclaw/openclaw@e61f175 fix(dev): bound issue labeler OpenAI waits fix(openai): normalize responses replay tool ids fix(status): keep default status fast path bounded · openclaw/openclaw@7121f67 feat(embeddings): add OpenAI-compatible core provider (#85269) · openclaw/openclaw@4d89e00 Make Telegram sendMessage actions durable (#87261) · openclaw/openclaw@f3fe48e fix(vllm): wire configured thinking params · openclaw/openclaw@e153ece fix(agents): separate heartbeat runtime template (#85416) · openclaw/openclaw@75221e0 fix(agents): honor OpenAI-compatible cache retention · openclaw/openclaw@3e351b7 fix: require admin for node device approvals · openclaw/openclaw@517ce3d fix(qa): create Matrix mention progress target · openclaw/openclaw@983759b fix(dev): bound Claude usage debug fetches · openclaw/openclaw@d09eb43 fix(cli): validate message numeric options · openclaw/openclaw@5fdaf6b perf(gateway): cache current plugin metadata fingerprints · openclaw/openclaw@7efbaf7 fix(dev): bound realtime smoke HTTP waits · openclaw/openclaw@e2cebe8 fix(qa): accept Matrix tool error final races · openclaw/openclaw@a275ce8 fix(qa): cap Matrix readiness polling · openclaw/openclaw@099b0f8 fix(cli): reject loose webhook and directory numeric options · openclaw/openclaw@0889106 fix(cli): validate directory limits before resolution · openclaw/openclaw@513a223 fix(agents): keep runtime context before active user turns · openclaw/openclaw@0503853 fix(qa): stop Matrix phases after run timeout · openclaw/openclaw@f4b9d24 fix(agents): strip stale Anthropic thinking · openclaw/openclaw@66965f5 fix(doctor): validate bundled MCP tool schemas · openclaw/openclaw@a02fe52 fix(qa): kill timed out Matrix CLI runs · openclaw/openclaw@b8fc2f6 fix(dev): bound discord smoke waits · openclaw/openclaw@545ad7f chore(pixverse): publish as external plugin · openclaw/openclaw@5366209 feat(pixverse): add api region selection · openclaw/openclaw@b3083de feat(pixverse): add video generation provider · openclaw/openclaw@c183705 fix(qa): tolerate fast Matrix tool replies · openclaw/openclaw@a46e839 refactor: remove channel turn runtime aliases · openclaw/openclaw@6c37402 fix(test): bound qa otel receiver bodies · openclaw/openclaw@83ab0ba fix(lint): clean manifest registry installed checks · openclaw/openclaw@fd648ed fix(scripts): resolve npm package candidates through npm runner · openclaw/openclaw@7a7d9de fix(qa): hide Matrix tool progress marker in workspace · openclaw/openclaw@42f3550 fix(usage): forward cached token usage in chat completions (#82062) · openclaw/openclaw@12e5876 test(codex): align provider claim expectation · openclaw/openclaw@42387af perf(gateway): cache stable plugin index fingerprints · openclaw/openclaw@2babe03 fix(test): scan kitchen rpc readiness logs incrementally · openclaw/openclaw@1d4537a fix(test): fail startup bench on bad samples · openclaw/openclaw@8c6da93 fix(onboard): preserve agents.list and bindings on rerun · openclaw/openclaw@bbdff39 fix: send bare direct Anthropic model ids · openclaw/openclaw@aa0a290 fix(deepinfra): load all DeepInfra models when user wants to browse t… fix(package): honor dist package exclusions in inventory · openclaw/openclaw@296fbde fix(qa): harden Matrix tool progress scenario · openclaw/openclaw@32b3fb6 fix(package): match npm globstar exclusions · openclaw/openclaw@f4bcd61 fix: preserve channel runResolved mock compatibility · openclaw/openclaw@c89298f fix(test): bound config reload log polling · openclaw/openclaw@329dad2 fix(lint): preserve JSONL parse cause · openclaw/openclaw@d6949d5 test(e2e): preserve macos smoke entrypoint path · openclaw/openclaw@5eba765 fix(test): await mcp timeout cleanup · openclaw/openclaw@109ba23 fix(test): harden mcp channel ws timeout · openclaw/openclaw@a4a75a8 fix(test): harden gateway network ws timeout · openclaw/openclaw@e50b20f fix(agents/harness): validate forced plugin harness support before pi… · openclaw/openclaw@730ac1a fix(test): bound codex media path log polling · openclaw/openclaw@40a2600 test: align extension inbound context assertions · openclaw/openclaw@98c0ad8 fix(install): skip Homebrew until macOS packages need it · openclaw/openclaw@527b7c2 fix(ci): bound additional boundary checks · openclaw/openclaw@351aac9 fix(release): reject empty beta smoke runs · openclaw/openclaw@4dfc2cf fix(build): cap tsdown heap in containers · openclaw/openclaw@e8dde30 fix(docker): skip declarations in runtime packages · openclaw/openclaw@cc662ba fix(package): omit unpacked test helpers from inventory · openclaw/openclaw@6c42fea fix(crabbox): reinitialize invalid changed-gate git dirs · openclaw/openclaw@ecdc925 fix(lint): shard core lint checks · openclaw/openclaw@1ba4448 fix(lint): cap oxlint helper memory locally · openclaw/openclaw@8caa44f fix(lint): split source lint shards · openclaw/openclaw@158bc69 fix(crabbox): full-sync local sparse container runs · openclaw/openclaw@b3e3b1b fix(test): enable live cache script gates · openclaw/openclaw@72c6813 fix(test): reject unknown live media providers · openclaw/openclaw@51dd548 fix(cli): reject loose model and gateway numeric options · openclaw/openclaw@6b391ef refactor: centralize inbound supplemental context · openclaw/openclaw@1507a97 fix(test): reject empty gateway cpu runs · openclaw/openclaw@ad3d197 fix(test): fail empty plugin gauntlet runs · openclaw/openclaw@b460ee4 fix: load Claude CLI OAuth for PI auth profiles (#87167) · openclaw/openclaw@cc704ca fix(agents): ignore failed subagent placeholders fix(agents): report approval resolutions in bridge mode · openclaw/openclaw@88bbc5b fix(qa): keep fallback delivery on latest targets fix(agents): preserve bridge hook context · openclaw/openclaw@2c3190d fix(qa): close remaining mock qa e2e regressions · openclaw/openclaw@14198a1 fix(qa): isolate mock bridge hook state · openclaw/openclaw@35248be fix(qa): stabilize mock QA scenario contracts · openclaw/openclaw@81c1892 fix(agents): classify direct fallback targets by channel grammar · openclaw/openclaw@79f7b93 fix(qa): scope mock image prompts to latest turn · openclaw/openclaw@c2d059d fix(agents): suppress Write/Edit failed warning on response-timeout f… · openclaw/openclaw@7e702bb fix(cron): surface classified run failure causes · openclaw/openclaw@3104f36 fix(test): fail empty extension test requests · openclaw/openclaw@57b1c0b fix(cli): reject loose numeric options · openclaw/openclaw@c95d348 docs(providers/openai): clarify OpenAI Realtime Platform credits · openclaw/openclaw@717003a fix(codex): keep attempt watchdog for queued terminal turns · openclaw/openclaw@ca990f2 fix(qqbot): gate fallback approval buttons (#87154) · openclaw/openclaw@08a73db fix(test): fail explicit empty vitest runs · openclaw/openclaw@7615c31 ci: fall back from stale workflow dispatch refs · openclaw/openclaw@8d99037 fix(lint): serialize oxlint shards on constrained hosts · openclaw/openclaw@c93b7d8
fix(dev): bound gh-read API waits · openclaw/openclaw@5fb57b5
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -2,12 +2,14 @@ import { execFileSync, spawnSync } from "node:child_process";

22

import { createPrivateKey, createSign } from "node:crypto";

33

import { readFileSync } from "node:fs";

44

import { pathToFileURL } from "node:url";

5+

import { parseStrictIntegerOption } from "./lib/dev-tooling-safety.ts";

5667

const APP_ID_ENV = "OPENCLAW_GH_READ_APP_ID";

78

const KEY_FILE_ENV = "OPENCLAW_GH_READ_PRIVATE_KEY_FILE";

89

const INSTALLATION_ID_ENV = "OPENCLAW_GH_READ_INSTALLATION_ID";

910

const PERMISSIONS_ENV = "OPENCLAW_GH_READ_PERMISSIONS";

1011

const API_VERSION = "2022-11-28";

12+

const DEFAULT_GITHUB_FETCH_TIMEOUT_MS = 30_000;

1113

const DEFAULT_READ_PERMISSION_KEYS = [

1214

"actions",

1315

"checks",

@@ -32,6 +34,11 @@ type AccessTokenResponse = {

3234

token: string;

3335

};

343637+

type GitHubJsonOptions = {

38+

fetchImpl?: typeof fetch;

39+

timeoutMs?: number;

40+

};

41+3542

export function parseRepoArg(args: string[]): string | null {

3643

for (let i = 0; i < args.length; i += 1) {

3744

const arg = args[i];

@@ -91,6 +98,15 @@ export function buildReadPermissions(

9198

return permissions;

9299

}

93100101+

export function resolveGitHubFetchTimeoutMs(raw = process.env.OPENCLAW_GH_READ_FETCH_TIMEOUT_MS) {

102+

return parseStrictIntegerOption({

103+

fallback: DEFAULT_GITHUB_FETCH_TIMEOUT_MS,

104+

label: "OPENCLAW_GH_READ_FETCH_TIMEOUT_MS",

105+

min: 1,

106+

raw,

107+

});

108+

}

109+94110

function isMainModule() {

95111

const entry = process.argv[1];

96112

return entry ? import.meta.url === pathToFileURL(entry).href : false;

@@ -151,32 +167,65 @@ function createAppJwt(appId: string, privateKeyPem: string) {

151167

return `${signingInput}.${base64UrlEncode(signature)}`;

152168

}

153169154-

async function githubJson<T>(

170+

async function withGitHubFetchTimeout<T>(

171+

label: string,

172+

timeoutMs: number,

173+

run: (signal: AbortSignal) => Promise<T>,

174+

): Promise<T> {

175+

const controller = new AbortController();

176+

let timeout: ReturnType<typeof setTimeout> | undefined;

177+

const timeoutPromise = new Promise<T>((_resolve, reject) => {

178+

timeout = setTimeout(() => {

179+

const error = new Error(`${label} exceeded timeout of ${timeoutMs}ms`);

180+

reject(error);

181+

controller.abort(error);

182+

}, timeoutMs);

183+

});

184+

try {

185+

return await Promise.race([run(controller.signal), timeoutPromise]);

186+

} finally {

187+

if (timeout) {

188+

clearTimeout(timeout);

189+

}

190+

}

191+

}

192+193+

export async function githubJson<T>(

155194

path: string,

156195

bearerToken: string,

157196

init?: {

158197

method?: "GET" | "POST";

159198

body?: unknown;

160199

},

200+

options: GitHubJsonOptions = {},

161201

): Promise<T> {

162-

const response = await fetch(`https://api.github.com${path}`, {

163-

method: init?.method ?? "GET",

164-

headers: {

165-

Accept: "application/vnd.github+json",

166-

Authorization: `Bearer ${bearerToken}`,

167-

"Content-Type": "application/json",

168-

"User-Agent": "openclaw-gh-read",

169-

"X-GitHub-Api-Version": API_VERSION,

170-

},

171-

body: init?.body === undefined ? undefined : JSON.stringify(init.body),

172-

});

202+

const fetchImpl = options.fetchImpl ?? fetch;

203+

const timeoutMs = options.timeoutMs ?? resolveGitHubFetchTimeoutMs();

204+

return await withGitHubFetchTimeout(

205+

`GitHub API ${init?.method ?? "GET"} ${path}`,

206+

timeoutMs,

207+

async (signal) => {

208+

const response = await fetchImpl(`https://api.github.com${path}`, {

209+

method: init?.method ?? "GET",

210+

headers: {

211+

Accept: "application/vnd.github+json",

212+

Authorization: `Bearer ${bearerToken}`,

213+

"Content-Type": "application/json",

214+

"User-Agent": "openclaw-gh-read",

215+

"X-GitHub-Api-Version": API_VERSION,

216+

},

217+

body: init?.body === undefined ? undefined : JSON.stringify(init.body),

218+

signal,

219+

});

173220174-

if (!response.ok) {

175-

const text = await response.text();

176-

fail(`${init?.method ?? "GET"} ${path} failed (${response.status}): ${text}`);

177-

}

221+

if (!response.ok) {

222+

const text = await response.text();

223+

fail(`${init?.method ?? "GET"} ${path} failed (${response.status}): ${text}`);

224+

}

178225179-

return (await response.json()) as T;

226+

return (await response.json()) as T;

227+

},

228+

);

180229

}

181230182231

async function resolveInstallation(