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

推荐订阅源

Y
Y Combinator Blog
腾讯CDC
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园_首页
D
DataBreaches.Net
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
月光博客
月光博客
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Vercel News
Vercel News
WordPress大学
WordPress大学
J
Java Code Geeks
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42

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
chore: apply core lint cleanups · openclaw/openclaw@596b889
steipete · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -456,7 +456,8 @@ export function collectForbiddenPackPaths(paths: Iterable<string>): string[] {

456456

return [...paths]

457457

.filter(

458458

(path) =>

459-

forbiddenPrefixes.some((prefix) => path.startsWith(prefix)) || /node_modules\//.test(path),

459+

forbiddenPrefixes.some((prefix) => path.startsWith(prefix)) ||

460+

path.includes("node_modules/"),

460461

)

461462

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

462463

}

Original file line numberDiff line numberDiff line change

@@ -13,7 +13,7 @@ import {

1313
1414

const logLevel = process.env.OPENCLAW_BUILD_VERBOSE ? "info" : "warn";

1515

const extraArgs = process.argv.slice(2);

16-

const INEFFECTIVE_DYNAMIC_IMPORT_RE = /\[INEFFECTIVE_DYNAMIC_IMPORT\]/;

16+

const INEFFECTIVE_DYNAMIC_IMPORT_MARKER = "[INEFFECTIVE_DYNAMIC_IMPORT]";

1717

const UNRESOLVED_IMPORT_RE = /\[UNRESOLVED_IMPORT\]/;

1818

const ANSI_ESCAPE_RE = new RegExp(String.raw`\u001B\[[0-9;]*m`, "g");

1919

const HASHED_ROOT_JS_RE = /^(?<base>.+)-[A-Za-z0-9_-]+\.js$/u;

@@ -170,7 +170,7 @@ export function createTsdownOutputScanner(params = {}) {

170170

return {

171171

append(chunk) {

172172

const text = Buffer.isBuffer(chunk) ? chunk.toString("utf8") : String(chunk);

173-

if (INEFFECTIVE_DYNAMIC_IMPORT_RE.test(text)) {

173+

if (text.includes(INEFFECTIVE_DYNAMIC_IMPORT_MARKER)) {

174174

hasIneffectiveDynamicImport = true;

175175

}

176176

scanLines(text);

Original file line numberDiff line numberDiff line change

@@ -44,7 +44,7 @@ describe("getSoonestCooldownExpiry", () => {

4444

cooldownUntil: Infinity,

4545

},

4646

"openai:p3": {

47-

disabledUntil: NaN,

47+

disabledUntil: Number.NaN,

4848

},

4949

"openai:p4": {

5050

cooldownUntil: 1_700_000_005_000,

Original file line numberDiff line numberDiff line change

@@ -249,7 +249,7 @@ describe("resolveApiKeyForProfile fallback to main agent", () => {

249249

profileId,

250250

access: "secondary-stale",

251251

refresh: "secondary-refresh",

252-

expires: NaN,

252+

expires: Number.NaN,

253253

}),

254254

);

255255
Original file line numberDiff line numberDiff line change

@@ -521,7 +521,7 @@ describe("clearExpiredCooldowns", () => {

521521

it("ignores NaN and Infinity cooldown values", () => {

522522

const store = makeStore({

523523

"anthropic:default": {

524-

cooldownUntil: NaN,

524+

cooldownUntil: Number.NaN,

525525

errorCount: 2,

526526

},

527527

"openai:default": {

Original file line numberDiff line numberDiff line change

@@ -181,7 +181,7 @@ export function formatUserTime(

181181

if (!map.weekday || !map.year || !map.month || !map.day || !map.hour || !map.minute) {

182182

return undefined;

183183

}

184-

const dayNum = parseInt(map.day, 10);

184+

const dayNum = Number.parseInt(map.day, 10);

185185

const suffix = ordinalSuffix(dayNum);

186186

const timePart = use24Hour

187187

? `${map.hour}:${map.minute}`

Original file line numberDiff line numberDiff line change

@@ -539,7 +539,7 @@ describe("runWithModelFallback – probe logic", () => {

539539

it("handles NaN soonest safely (treats as probe-worthy)", async () => {

540540

const cfg = makeCfg();

541541
542-

mockedGetSoonestCooldownExpiry.mockReturnValue(NaN);

542+

mockedGetSoonestCooldownExpiry.mockReturnValue(Number.NaN);

543543
544544

const run = vi.fn().mockResolvedValue("ok-nan");

545545
Original file line numberDiff line numberDiff line change

@@ -66,7 +66,7 @@ function parseLspMessages(buffer: string): { messages: unknown[]; remaining: str

6666

continue;

6767

}

6868
69-

const contentLength = parseInt(match[1], 10);

69+

const contentLength = Number.parseInt(match[1], 10);

7070

const bodyStart = headerEnd + 4;

7171

const bodyEnd = bodyStart + contentLength;

7272
Original file line numberDiff line numberDiff line change

@@ -146,7 +146,7 @@ describe("resolveCompactionTimeoutMs", () => {

146146

it("returns default for NaN", () => {

147147

expect(

148148

resolveCompactionTimeoutMs({

149-

agents: { defaults: { compaction: { timeoutSeconds: NaN } } },

149+

agents: { defaults: { compaction: { timeoutSeconds: Number.NaN } } },

150150

}),

151151

).toBe(EMBEDDED_COMPACTION_TIMEOUT_MS);

152152

});

Original file line numberDiff line numberDiff line change

@@ -171,10 +171,10 @@ function parseModel(model: OpenRouterApiModel): OpenRouterModelCapabilities {

171171

model.max_output_tokens ??

172172

8192,

173173

cost: {

174-

input: parseFloat(model.pricing?.prompt || "0") * 1_000_000,

175-

output: parseFloat(model.pricing?.completion || "0") * 1_000_000,

176-

cacheRead: parseFloat(model.pricing?.input_cache_read || "0") * 1_000_000,

177-

cacheWrite: parseFloat(model.pricing?.input_cache_write || "0") * 1_000_000,

174+

input: Number.parseFloat(model.pricing?.prompt || "0") * 1_000_000,

175+

output: Number.parseFloat(model.pricing?.completion || "0") * 1_000_000,

176+

cacheRead: Number.parseFloat(model.pricing?.input_cache_read || "0") * 1_000_000,

177+

cacheWrite: Number.parseFloat(model.pricing?.input_cache_write || "0") * 1_000_000,

178178

},

179179

};

180180

}