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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
小众软件
小众软件
D
Docker
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
博客园 - 叶小钗
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
IT之家
IT之家
博客园 - 司徒正美
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Check Point 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 utility exports · openclaw/openclaw@...
steipete · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -21,7 +21,7 @@ type SilkWasm = typeof import("silk-wasm");

2121

let _silkWasmPromise: Promise<SilkWasm | null> | null = null;

2222
2323

/** Lazy-load the silk-wasm module (singleton cache; returns null on failure). */

24-

export function loadSilkWasm(): Promise<SilkWasm | null> {

24+

function loadSilkWasm(): Promise<SilkWasm | null> {

2525

if (_silkWasmPromise) {

2626

return _silkWasmPromise;

2727

}

@@ -370,7 +370,7 @@ export async function waitForFile(

370370

}

371371
372372

/** Encode PCM s16le data into SILK format. */

373-

export async function pcmToSilk(

373+

async function pcmToSilk(

374374

pcmBuffer: Buffer,

375375

sampleRate: number,

376376

): Promise<{ silkBuffer: Buffer; duration: number }> {

@@ -387,7 +387,7 @@ export async function pcmToSilk(

387387

}

388388
389389

/** Use ffmpeg to convert any audio to mono 24 kHz PCM s16le. */

390-

export function ffmpegToPCM(

390+

function ffmpegToPCM(

391391

ffmpegCmd: string,

392392

inputPath: string,

393393

sampleRate: number = 24000,

@@ -428,7 +428,7 @@ export function ffmpegToPCM(

428428

}

429429
430430

/** Decode MP3 to PCM via mpg123-decoder WASM (fallback when ffmpeg is unavailable). */

431-

export async function wasmDecodeMp3ToPCM(buf: Buffer, targetRate: number): Promise<Buffer | null> {

431+

async function wasmDecodeMp3ToPCM(buf: Buffer, targetRate: number): Promise<Buffer | null> {

432432

try {

433433

const { MPEGDecoder } = await import("mpg123-decoder");

434434

debugLog(`[audio-convert] WASM MP3 decode: size=${buf.length} bytes`);

Original file line numberDiff line numberDiff line change

@@ -17,7 +17,7 @@ import { getQQBotDataPath } from "./platform.js";

1717

* Normalise an identifier so it is safe to embed in a filename.

1818

* Keeps alphanumerics, dot, underscore, dash; everything else becomes `_`.

1919

*/

20-

export function safeName(id: string): string {

20+

function safeName(id: string): string {

2121

return id.replace(/[^a-zA-Z0-9._-]/g, "_");

2222

}

2323
Original file line numberDiff line numberDiff line change

@@ -16,7 +16,7 @@ export interface ImageSize {

1616

}

1717
1818

/** Default dimensions used when probing fails. */

19-

export const DEFAULT_IMAGE_SIZE: ImageSize = { width: 512, height: 512 };

19+

const DEFAULT_IMAGE_SIZE: ImageSize = { width: 512, height: 512 };

2020
2121

/**

2222

* Parse image dimensions from the PNG header.

@@ -199,7 +199,7 @@ export async function getImageSizeFromUrl(

199199

}

200200
201201

/** Parse image dimensions from a Base64 data URL. */

202-

export function getImageSizeFromDataUrl(dataUrl: string): ImageSize | null {

202+

function getImageSizeFromDataUrl(dataUrl: string): ImageSize | null {

203203

try {

204204

// Format: data:image/png;base64,xxxxx

205205

const matches = dataUrl.match(/^data:image\/[^;]+;base64,(.+)$/);

Original file line numberDiff line numberDiff line change

@@ -84,7 +84,7 @@ export function getQQBotMediaDir(...subPaths: string[]): string {

8484

* `saveMediaBuffer(..., "outbound", ...)`) or `inbound/`, while still keeping

8585

* the check anchored to a single, well-known directory.

8686

*/

87-

export function getOpenClawMediaDir(): string {

87+

function getOpenClawMediaDir(): string {

8888

return path.join(getHomeDir(), ".openclaw", "media");

8989

}

9090

@@ -209,7 +209,7 @@ export async function checkSilkWasmAvailable(): Promise<boolean> {

209209

// ---- Tilde expansion and path normalization ----

210210
211211

/** Expand `~` to the current user's home directory. */

212-

export function expandTilde(p: string): string {

212+

function expandTilde(p: string): string {

213213

if (!p) {

214214

return p;

215215

}