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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
爱范儿
爱范儿
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
S
SegmentFault 最新的问题
博客园 - Franky
博客园_首页
T
Tailwind CSS 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
chore(lint): enable more readability rules · openclaw/ope...
steipete · 2026-05-31 · via Recent Commits to openclaw:main

File tree

      • whatsapp/src/auto-reply/monitor

    • packages/agent-core/src/harness

      • e2e/lib/plugin-lifecycle-matrix

    Original file line numberDiff line numberDiff line change

    @@ -32,11 +32,13 @@

    3232

    "eslint/no-useless-computed-key": "error",

    3333

    "eslint/no-useless-concat": "error",

    3434

    "eslint/no-useless-constructor": "error",

    35+

    "eslint/no-useless-rename": "error",

    3536

    "eslint/no-unused-vars": "off",

    3637

    "eslint/no-warning-comments": "error",

    3738

    "eslint/no-unmodified-loop-condition": "error",

    3839

    "eslint/no-new-wrappers": "error",

    3940

    "eslint/no-else-return": "error",

    41+

    "eslint/no-lonely-if": "error",

    4042

    "eslint/no-case-declarations": "error",

    4143

    "eslint/default-case-last": "error",

    4244

    "eslint/default-param-last": "error",

    @@ -89,6 +91,7 @@

    8991

    "typescript/prefer-namespace-keyword": "error",

    9092

    "typescript/prefer-return-this-type": "error",

    9193

    "typescript/prefer-find": "error",

    94+

    "typescript/prefer-for-of": "error",

    9295

    "typescript/prefer-function-type": "error",

    9396

    "typescript/prefer-includes": "error",

    9497

    "typescript/prefer-reduce-type-parameter": "error",

    @@ -118,6 +121,7 @@

    118121

    "unicorn/prefer-date-now": "error",

    119122

    "unicorn/prefer-dom-node-text-content": "error",

    120123

    "unicorn/prefer-keyboard-event-key": "error",

    124+

    "unicorn/prefer-array-flat": "error",

    121125

    "unicorn/prefer-array-some": "error",

    122126

    "unicorn/prefer-math-min-max": "error",

    123127

    "unicorn/prefer-node-protocol": "error",

    Original file line numberDiff line numberDiff line change

    @@ -373,8 +373,7 @@ function splitExecLine(line: string): string[] {

    373373

    let current = "";

    374374

    let inQuotes = false;

    375375

    let quoteChar = "";

    376-

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

    377-

    const ch = line[i];

    376+

    for (const ch of line) {

    378377

    if ((ch === '"' || ch === "'") && (!inQuotes || ch === quoteChar)) {

    379378

    if (inQuotes) {

    380379

    inQuotes = false;

    Original file line numberDiff line numberDiff line change

    @@ -2051,10 +2051,8 @@ export class MatrixClient {

    20512051

    this.emitter.emit("room.event", roomId, raw);

    20522052

    if (isEncryptedEvent) {

    20532053

    this.emitter.emit("room.encrypted_event", roomId, raw);

    2054-

    } else {

    2055-

    if (decryptBridge.shouldEmitUnencryptedMessage(roomId, raw.event_id)) {

    2056-

    this.emitter.emit("room.message", roomId, raw);

    2057-

    }

    2054+

    } else if (decryptBridge.shouldEmitUnencryptedMessage(roomId, raw.event_id)) {

    2055+

    this.emitter.emit("room.message", roomId, raw);

    20582056

    }

    20592057
    20602058

    const stateKey = raw.state_key ?? "";

    Original file line numberDiff line numberDiff line change

    @@ -231,7 +231,7 @@ const LANGUAGE_STOP_WORDS = {

    231231
    232232

    const CONCEPT_STOP_WORDS = new Set(

    233233

    Object.values(LANGUAGE_STOP_WORDS)

    234-

    .flatMap((words) => words)

    234+

    .flat()

    235235

    .map((word) => normalizeLowercaseStringOrEmpty(word)),

    236236

    );

    237237
    Original file line numberDiff line numberDiff line change

    @@ -255,28 +255,26 @@ export async function handleNextcloudTalkInbound(params: {

    255255

    runtime.log?.(`nextcloud-talk: drop group sender ${senderId} (reason=${accessReason})`);

    256256

    return;

    257257

    }

    258-

    } else {

    259-

    if (access.senderAccess.decision !== "allow") {

    260-

    if (access.senderAccess.decision === "pairing") {

    261-

    await pairing.issueChallenge({

    262-

    senderId,

    263-

    senderIdLine: `Your Nextcloud user id: ${senderId}`,

    264-

    meta: { name: senderName || undefined },

    265-

    sendPairingReply: async (text) => {

    266-

    await sendMessageNextcloudTalk(roomToken, text, {

    267-

    cfg: config,

    268-

    accountId: account.accountId,

    269-

    });

    270-

    statusSink?.({ lastOutboundAt: Date.now() });

    271-

    },

    272-

    onReplyError: (err) => {

    273-

    runtime.error?.(`nextcloud-talk: pairing reply failed for ${senderId}: ${String(err)}`);

    274-

    },

    275-

    });

    276-

    }

    277-

    runtime.log?.(`nextcloud-talk: drop DM sender ${senderId} (reason=${accessReason})`);

    278-

    return;

    258+

    } else if (access.senderAccess.decision !== "allow") {

    259+

    if (access.senderAccess.decision === "pairing") {

    260+

    await pairing.issueChallenge({

    261+

    senderId,

    262+

    senderIdLine: `Your Nextcloud user id: ${senderId}`,

    263+

    meta: { name: senderName || undefined },

    264+

    sendPairingReply: async (text) => {

    265+

    await sendMessageNextcloudTalk(roomToken, text, {

    266+

    cfg: config,

    267+

    accountId: account.accountId,

    268+

    });

    269+

    statusSink?.({ lastOutboundAt: Date.now() });

    270+

    },

    271+

    onReplyError: (err) => {

    272+

    runtime.error?.(`nextcloud-talk: pairing reply failed for ${senderId}: ${String(err)}`);

    273+

    },

    274+

    });

    279275

    }

    276+

    runtime.log?.(`nextcloud-talk: drop DM sender ${senderId} (reason=${accessReason})`);

    277+

    return;

    280278

    }

    281279
    282280

    if (access.commandAccess.shouldBlockControlCommand) {

    Original file line numberDiff line numberDiff line change

    @@ -312,13 +312,11 @@ export async function waitForFile(

    312312

    stableCount = 0;

    313313

    }

    314314

    lastSize = stat.size;

    315-

    } else {

    316-

    if (Date.now() - fileAppearedAt > emptyGiveUpMs) {

    317-

    debugError(

    318-

    `[audio-convert] waitForFile: file still empty after ${emptyGiveUpMs}ms, giving up: ${path.basename(filePath)}`,

    319-

    );

    320-

    return 0;

    321-

    }

    315+

    } else if (Date.now() - fileAppearedAt > emptyGiveUpMs) {

    316+

    debugError(

    317+

    `[audio-convert] waitForFile: file still empty after ${emptyGiveUpMs}ms, giving up: ${path.basename(filePath)}`,

    318+

    );

    319+

    return 0;

    322320

    }

    323321

    } catch {

    324322

    if (!fileExists && Date.now() - start > noFileGiveUpMs) {

    Original file line numberDiff line numberDiff line change

    @@ -107,17 +107,13 @@ function expectRpcCall(params: {

    107107

    expect(method).toBe(params.method);

    108108

    if (params.rpcParams) {

    109109

    expectFields(requireRecord(rpcParams, "rpc params"), params.rpcParams);

    110-

    } else {

    111-

    if (rpcParams === undefined) {

    112-

    throw new Error("expected rpc params argument");

    113-

    }

    110+

    } else if (rpcParams === undefined) {

    111+

    throw new Error("expected rpc params argument");

    114112

    }

    115113

    if (params.options) {

    116114

    expectFields(requireRecord(options, "rpc options"), params.options);

    117-

    } else {

    118-

    if (options === undefined) {

    119-

    throw new Error("expected rpc options argument");

    120-

    }

    115+

    } else if (options === undefined) {

    116+

    throw new Error("expected rpc options argument");

    121117

    }

    122118

    }

    123119
    Original file line numberDiff line numberDiff line change

    @@ -68,7 +68,7 @@ class GroupFairQueue {

    6868

    }

    6969
    7070

    private takeNext(): QueuedApiRequest<unknown> | undefined {

    71-

    for (let scanned = 0; scanned < this.laneOrder.length; scanned += 1) {

    71+

    for (const ignoredLaneKey of this.laneOrder) {

    7272

    this.nextLaneIndex %= this.laneOrder.length;

    7373

    const laneKey = this.laneOrder[this.nextLaneIndex];

    7474

    const queue = this.lanes.get(laneKey);

    Original file line numberDiff line numberDiff line change

    @@ -294,8 +294,7 @@ async function sendTelegramVoiceFallbackText(opts: {

    294294

    let firstDeliveredMessageId: number | undefined;

    295295

    const chunks = filterEmptyTelegramTextChunks(opts.chunkText(opts.text));

    296296

    let appliedReplyTo = false;

    297-

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

    298-

    const chunk = chunks[i];

    297+

    for (const chunk of chunks) {

    299298

    // Only apply reply reference, quote text, and buttons to the first chunk.

    300299

    const replyToForChunk = !appliedReplyTo ? opts.replyToId : undefined;

    301300

    const applyQuoteForChunk = !appliedReplyTo;

    Original file line numberDiff line numberDiff line change

    @@ -216,8 +216,7 @@ function shouldBypassEnvProxyForTelegramApi(env: NodeJS.ProcessEnv = process.env

    216216

    const targetHostname = normalizeLowercaseStringOrEmpty(TELEGRAM_API_HOSTNAME);

    217217

    const targetPort = 443;

    218218

    const noProxyEntries = noProxyValue.split(/[,\s]/);

    219-

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

    220-

    const entry = noProxyEntries[i];

    219+

    for (const entry of noProxyEntries) {

    221220

    if (!entry) {

    222221

    continue;

    223222

    }