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

推荐订阅源

有赞技术团队
有赞技术团队
G
Google Developers Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
P
Proofpoint News Feed
V
Visual Studio Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 叶小钗
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
H
Help Net Security
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
量子位
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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 provider internal exports · openclaw/openc...
steipete · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -51,8 +51,8 @@ function isSupportedRegion(region: string): boolean {

5151

// Bearer token resolution

5252

// ---------------------------------------------------------------------------

5353
54-

export type MantleBearerTokenProvider = () => Promise<string>;

55-

export type MantleBearerTokenProviderFactory = (opts?: {

54+

type MantleBearerTokenProvider = () => Promise<string>;

55+

type MantleBearerTokenProviderFactory = (opts?: {

5656

region?: string;

5757

expiresInSeconds?: number;

5858

}) => MantleBearerTokenProvider;

Original file line numberDiff line numberDiff line change

@@ -10,7 +10,7 @@ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtim

1010

// Types & constants

1111

// ---------------------------------------------------------------------------

1212
13-

export type BedrockEmbeddingClient = {

13+

type BedrockEmbeddingClient = {

1414

region: string;

1515

model: string;

1616

dimensions?: number;

@@ -162,7 +162,7 @@ async function loadCredentialProviderSdk(): Promise<AwsCredentialProviderSdk | n

162162

const MODEL_PREFIX_RE = /^(?:bedrock|amazon-bedrock|aws)\//;

163163

const REGION_RE = /bedrock-runtime\.([a-z0-9-]+)\./;

164164
165-

export function normalizeBedrockEmbeddingModel(model: string): string {

165+

function normalizeBedrockEmbeddingModel(model: string): string {

166166

const trimmed = model.trim();

167167

return trimmed ? trimmed.replace(MODEL_PREFIX_RE, "") : DEFAULT_BEDROCK_EMBEDDING_MODEL;

168168

}

@@ -337,7 +337,7 @@ export async function createBedrockEmbeddingProvider(

337337

// Client resolution

338338

// ---------------------------------------------------------------------------

339339
340-

export function resolveBedrockEmbeddingClient(

340+

function resolveBedrockEmbeddingClient(

341341

options: MemoryEmbeddingProviderCreateOptions,

342342

): BedrockEmbeddingClient {

343343

const model = normalizeBedrockEmbeddingModel(options.model);

Original file line numberDiff line numberDiff line change

@@ -165,7 +165,7 @@ function toCanonicalAnthropicModelRef(ref: string): string {

165165

: ref;

166166

}

167167
168-

export function normalizeAnthropicProviderConfig<T extends { api?: string; models?: unknown[] }>(

168+

function normalizeAnthropicProviderConfig<T extends { api?: string; models?: unknown[] }>(

169169

providerConfig: T,

170170

): T {

171171

if (

Original file line numberDiff line numberDiff line change

@@ -12,7 +12,7 @@ export const DEFAULT_AZURE_SPEECH_AUDIO_FORMAT = "audio-24khz-48kbitrate-mono-mp

1212

export const DEFAULT_AZURE_SPEECH_VOICE_NOTE_FORMAT = "ogg-24khz-16bit-mono-opus";

1313

export const DEFAULT_AZURE_SPEECH_TELEPHONY_FORMAT = "raw-8khz-8bit-mono-mulaw";

1414
15-

export type AzureSpeechVoiceEntry = {

15+

type AzureSpeechVoiceEntry = {

1616

ShortName?: string;

1717

DisplayName?: string;

1818

LocalName?: string;

@@ -52,11 +52,11 @@ function azureSpeechUrl(params: {

5252

return `${baseUrl}${params.path}`;

5353

}

5454
55-

export function escapeXmlText(text: string): string {

55+

function escapeXmlText(text: string): string {

5656

return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");

5757

}

5858
59-

export function escapeXmlAttr(value: string): string {

59+

function escapeXmlAttr(value: string): string {

6060

return escapeXmlText(value).replace(/"/g, "&quot;").replace(/'/g, "&apos;");

6161

}

6262
Original file line numberDiff line numberDiff line change

@@ -8,7 +8,7 @@ import {

88

resolveCloudflareAiGatewayBaseUrl,

99

} from "./models.js";

1010
11-

export type CloudflareAiGatewayCredential =

11+

type CloudflareAiGatewayCredential =

1212

| {

1313

type?: string;

1414

keyRef?: unknown;

@@ -20,9 +20,7 @@ export type CloudflareAiGatewayCredential =

2020

}

2121

| undefined;

2222
23-

export function resolveCloudflareAiGatewayApiKey(

24-

cred: CloudflareAiGatewayCredential,

25-

): string | undefined {

23+

function resolveCloudflareAiGatewayApiKey(cred: CloudflareAiGatewayCredential): string | undefined {

2624

if (!cred || cred.type !== "api_key") {

2725

return undefined;

2826

}

@@ -35,7 +33,7 @@ export function resolveCloudflareAiGatewayApiKey(

3533

return normalizeOptionalString(cred.key);

3634

}

3735
38-

export function resolveCloudflareAiGatewayMetadata(cred: CloudflareAiGatewayCredential): {

36+

function resolveCloudflareAiGatewayMetadata(cred: CloudflareAiGatewayCredential): {

3937

accountId?: string;

4038

gatewayId?: string;

4139

} {