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

推荐订阅源

Y
Y Combinator Blog
博客园_首页
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Help Net Security
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
月光博客
月光博客
云风的 BLOG
云风的 BLOG
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
C
Check Point Blog
V
V2EX
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security 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
refactor: trim qqbot helper exports · openclaw/openclaw@b...
steipete · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -291,6 +291,3 @@ export interface Credentials {

291291

appId: string;

292292

clientSecret: string;

293293

}

294-
295-

// Re-export getNextMsgSeq for consumers that import from messages.ts.

296-

export { getNextMsgSeq } from "./routes.js";

Original file line numberDiff line numberDiff line change

@@ -211,7 +211,7 @@ export function buildPartFinishPersistentPolicy(

211211

}

212212
213213

/** Business error codes that trigger persistent part-finish retry. */

214-

export const PART_FINISH_RETRYABLE_CODES: Set<number> = new Set([40093001]);

214+

const PART_FINISH_RETRYABLE_CODES: Set<number> = new Set([40093001]);

215215
216216

/** upload_prepare error code indicating daily limit exceeded. */

217217

export const UPLOAD_PREPARE_FALLBACK_CODE = 40093002;

Original file line numberDiff line numberDiff line change

@@ -73,7 +73,7 @@ export interface DeliverDeps {

7373

// ---- Exported types ----

7474
7575

/** Maximum text length for a single QQ Bot message. */

76-

export const TEXT_CHUNK_LIMIT = 5000;

76+

const TEXT_CHUNK_LIMIT = 5000;

7777
7878

export interface DeliverEventContext {

7979

type: "c2c" | "guild" | "dm" | "group";

Original file line numberDiff line numberDiff line change

@@ -803,6 +803,6 @@ export function accountToCreds(account: { appId: string; clientSecret: string })

803803

}

804804
805805

/** Check whether a target type supports rich media (C2C and Group only). */

806-

export function supportsRichMedia(targetType: string): boolean {

806+

function supportsRichMedia(targetType: string): boolean {

807807

return targetType === "c2c" || targetType === "group";

808808

}

Original file line numberDiff line numberDiff line change

@@ -31,11 +31,11 @@ export interface SendQueueItem {

3131

}

3232
3333

/** 统一的媒体标签正则 — 匹配标准化后的 6 种标签 */

34-

export const MEDIA_TAG_REGEX =

34+

const MEDIA_TAG_REGEX =

3535

/<(qqimg|qqvoice|qqvideo|qqfile|qqmedia|img)>([^<>]+)<\/(?:qqimg|qqvoice|qqvideo|qqfile|qqmedia|img)>/gi;

3636
3737

/** 创建一个新的全局标签正则实例(每次调用 reset lastIndex) */

38-

export function createMediaTagRegex(): RegExp {

38+

function createMediaTagRegex(): RegExp {

3939

return new RegExp(MEDIA_TAG_REGEX.source, MEDIA_TAG_REGEX.flags);

4040

}

4141

@@ -70,7 +70,7 @@ export interface MediaSendContext {

7070

* 此方法在 gateway.ts deliver 回调、outbound.ts sendText、

7171

* streaming.ts sendMediaQueue 中共用。

7272

*/

73-

export function fixPathEncoding(

73+

function fixPathEncoding(

7474

mediaPath: string,

7575

log?: { debug?: (msg: string) => void; error?: (msg: string) => void },

7676

): string {

@@ -133,7 +133,7 @@ export function fixPathEncoding(

133133

* @param position 要检测的位置(字符索引)

134134

* @returns 如果 position 在围栏代码块内返回 true

135135

*/

136-

export function isInsideCodeBlock(text: string, position: number): boolean {

136+

function isInsideCodeBlock(text: string, position: number): boolean {

137137

const fenceRegex = /^(`{3,})[^\n]*$/gm;

138138

let fenceMatch: RegExpExecArray | null;

139139

let openFence: { pos: number; ticks: number } | null = null;

Original file line numberDiff line numberDiff line change

@@ -63,7 +63,7 @@ export const ChannelApiSchema = {

6363

* Build the full API URL from base + path + query params.

6464

* 拼接 API 基地址 + 路径 + 查询参数。

6565

*/

66-

export function buildUrl(path: string, query?: Record<string, string>): string {

66+

function buildUrl(path: string, query?: Record<string, string>): string {

6767

let url = `${API_BASE}${path}`;

6868

if (query && Object.keys(query).length > 0) {

6969

const params = new URLSearchParams();

@@ -84,7 +84,7 @@ export function buildUrl(path: string, query?: Record<string, string>): string {

8484

* Validate API path format; returns an error string or null if valid.

8585

* 校验 API 路径格式,返回错误描述或 null(合法)。

8686

*/

87-

export function validatePath(path: string): string | null {

87+

function validatePath(path: string): string | null {

8888

if (!path.startsWith("/")) {

8989

return "path must start with /";

9090

}