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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
U
Unit 42
T
Tailwind CSS Blog
罗磊的独立博客
WordPress大学
WordPress大学
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 聂微东
Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
V
V2EX
博客园 - 三生石上(FineUI控件)
I
InfoQ
雷峰网
雷峰网
G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
B
Blog
腾讯CDC
A
About on SuperTechFans
博客园 - 叶小钗

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: remove unused qqbot sender helpers · openclaw/o...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -220,26 +220,6 @@ export function getMessageApi(appId: string): MessageApiClass {

220220

return resolveAccount(appId).messageApi;

221221

}

222222223-

/** Get the MediaApi instance for the given appId. */

224-

export function getMediaApi(appId: string): MediaApiClass {

225-

return resolveAccount(appId).mediaApi;

226-

}

227-228-

/** Get the ChunkedMediaApi instance for the given appId. */

229-

export function getChunkedMediaApi(appId: string): ChunkedMediaApiClass {

230-

return resolveAccount(appId).chunkedMediaApi;

231-

}

232-233-

/** Get the TokenManager instance for the given appId. */

234-

export function getTokenManager(appId: string): TokenManager {

235-

return resolveAccount(appId).tokenMgr;

236-

}

237-238-

/** Get the ApiClient instance for the given appId. */

239-

export function getApiClient(appId: string): ApiClient {

240-

return resolveAccount(appId).client;

241-

}

242-243223

// ============ Per-appId config ============

244224245225

type OnMessageSentCallback = (refIdx: string, meta: OutboundMeta) => void;

@@ -249,11 +229,6 @@ export function onMessageSent(appId: string, callback: OnMessageSentCallback): v

249229

resolveAccount(appId).messageApi.onMessageSent(callback);

250230

}

251231252-

/** Return whether markdown is enabled for the given appId. */

253-

export function isMarkdownSupport(appId: string): boolean {

254-

return _accountRegistry.get(appId.trim())?.markdownSupport ?? false;

255-

}

256-257232

// ============ Token management ============

258233259234

export async function getAccessToken(appId: string, clientSecret: string): Promise<string> {

@@ -270,13 +245,6 @@ export function clearTokenCache(appId?: string): void {

270245

}

271246

}

272247273-

export function getTokenStatus(appId: string): {

274-

status: "valid" | "expired" | "refreshing" | "none";

275-

expiresAt: number | null;

276-

} {

277-

return resolveAccount(appId).tokenMgr.getStatus(appId);

278-

}

279-280248

export function startBackgroundTokenRefresh(

281249

appId: string,

282250

clientSecret: string,

@@ -305,18 +273,6 @@ export function stopBackgroundTokenRefresh(appId?: string): void {

305273

}

306274

}

307275308-

export function isBackgroundTokenRefreshRunning(appId?: string): boolean {

309-

if (appId) {

310-

return resolveAccount(appId).tokenMgr.isBackgroundRefreshRunning(appId);

311-

}

312-

for (const ctx of _accountRegistry.values()) {

313-

if (ctx.tokenMgr.isBackgroundRefreshRunning()) {

314-

return true;

315-

}

316-

}

317-

return false;

318-

}

319-320276

// ============ Gateway URL ============

321277322278

export async function getGatewayUrl(accessToken: string, appId: string): Promise<string> {

@@ -450,35 +406,6 @@ export async function sendText(

450406

return api.sendChannelMessage({ channelId: target.id, content, creds: c, msgId: opts?.msgId });

451407

}

452408453-

/**

454-

* Send text with automatic token-retry.

455-

*/

456-

export async function sendTextWithRetry(

457-

target: DeliveryTarget,

458-

content: string,

459-

creds: AccountCreds,

460-

opts?: { msgId?: string; messageReference?: string },

461-

log?: EngineLogger,

462-

): Promise<MessageResponse> {

463-

return withTokenRetry(

464-

creds,

465-

async () => sendText(target, content, creds, opts),

466-

log,

467-

creds.appId,

468-

);

469-

}

470-471-

/**

472-

* Send a proactive text message (no msgId).

473-

*/

474-

export async function sendProactiveText(

475-

target: DeliveryTarget,

476-

content: string,

477-

creds: AccountCreds,

478-

): Promise<MessageResponse> {

479-

return sendText(target, content, creds);

480-

}

481-482409

// ============ Input notify ============

483410484411

/**