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

推荐订阅源

WordPress大学
WordPress大学
H
Help Net Security
Jina AI
Jina AI
V
V2EX
G
Google Developers Blog
B
Blog
GbyAI
GbyAI
U
Unit 42
爱范儿
爱范儿
腾讯CDC
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
小众软件
小众软件
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
博客园 - 聂微东
The Cloudflare Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - 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
docs: document model list runtime comments · openclaw/ope...
steipete · 2026-06-05 · via Recent Commits to openclaw:main

@@ -1,3 +1,4 @@

1+

/** Auth probe planning and execution helpers for model diagnostics. */

12

import crypto from "node:crypto";

23

import fs from "node:fs/promises";

34

import { normalizeUniqueStringEntries } from "@openclaw/normalization-core/string-normalization";

@@ -46,6 +47,7 @@ function loadEmbeddedRunnerModule() {

4647

return embeddedRunnerModuleLoader.load();

4748

}

484950+

/** Normalized probe status bucket for auth/model diagnostics. */

4951

export type AuthProbeStatus =

5052

| "ok"

5153

| "auth"

@@ -56,6 +58,7 @@ export type AuthProbeStatus =

5658

| "unknown"

5759

| "no_model";

586061+

/** Reason code for probes that never reached a model call. */

5962

export type AuthProbeReasonCode =

6063

| "excluded_by_auth_order"

6164

| "missing_credential"

@@ -65,6 +68,7 @@ export type AuthProbeReasonCode =

6568

| "ineligible_profile"

6669

| "no_model";

677071+

/** Result for one profile/env/models.json auth probe target. */

6872

export type AuthProbeResult = {

6973

provider: string;

7074

model?: string;

@@ -87,6 +91,7 @@ type AuthProbeTarget = {

8791

mode?: string;

8892

};

899394+

/** Summary for a full auth probe run. */

9095

export type AuthProbeSummary = {

9196

startedAt: number;

9297

finishedAt: number;

@@ -102,6 +107,7 @@ export type AuthProbeSummary = {

102107

results: AuthProbeResult[];

103108

};

104109110+

/** Runtime options controlling provider/profile filtering and probe cost. */

105111

export type AuthProbeOptions = {

106112

provider?: string;

107113

profileIds?: string[];

@@ -110,6 +116,7 @@ export type AuthProbeOptions = {

110116

maxTokens: number;

111117

};

112118119+

/** Maps runtime failover reasons into stable auth probe status buckets. */

113120

export function mapFailoverReasonToProbeStatus(reason?: string | null): AuthProbeStatus {

114121

if (!reason) {

115122

return "unknown";

@@ -285,6 +292,7 @@ async function maybeResolveUnresolvedRefIssue(params: {

285292

}

286293

}

287294295+

/** Builds probe targets plus preflight failures for missing/invalid credentials. */

288296

export async function buildProbeTargets(params: {

289297

cfg: OpenClawConfig;

290298

agentDir?: string;

@@ -334,6 +342,8 @@ export async function buildProbeTargets(params: {

334342

explicitOrder && explicitOrder.length > 0

335343

? new Set(resolveAuthProfileOrder({ cfg, store, provider: providerKey }))

336344

: null;

345+

// Explicit auth.order both selects and documents profile eligibility; report

346+

// excluded profiles instead of silently skipping them.

337347

const filteredProfiles = profileFilter.size

338348

? profileIds.filter((id) => profileFilter.has(id))

339349

: profileIds;

@@ -605,6 +615,7 @@ async function runTargetsWithConcurrency(params: {

605615

return results.filter((entry): entry is AuthProbeResult => Boolean(entry));

606616

}

607617618+

/** Runs all auth probes with bounded concurrency and returns a summary. */

608619

export async function runAuthProbes(params: {

609620

cfg: OpenClawConfig;

610621

agentId?: string;

@@ -654,13 +665,15 @@ export async function runAuthProbes(params: {

654665

};

655666

}

656667668+

/** Formats probe latency for table output. */

657669

export function formatProbeLatency(latencyMs?: number | null) {

658670

if (!latencyMs && latencyMs !== 0) {

659671

return "-";

660672

}

661673

return formatMs(latencyMs);

662674

}

663675676+

/** Groups probe results by provider. */

664677

export function groupProbeResults(results: AuthProbeResult[]): Map<string, AuthProbeResult[]> {

665678

const map = new Map<string, AuthProbeResult[]>();

666679

for (const result of results) {

@@ -671,6 +684,7 @@ export function groupProbeResults(results: AuthProbeResult[]): Map<string, AuthP

671684

return map;

672685

}

673686687+

/** Sorts probe results by provider and display label. */

674688

export function sortProbeResults(results: AuthProbeResult[]): AuthProbeResult[] {

675689

return results.slice().toSorted((a, b) => {

676690

const provider = a.provider.localeCompare(b.provider);

@@ -683,6 +697,7 @@ export function sortProbeResults(results: AuthProbeResult[]): AuthProbeResult[]

683697

});

684698

}

685699700+

/** Produces the terse completion line for auth probe output. */

686701

export function describeProbeSummary(summary: AuthProbeSummary): string {

687702

if (summary.totalTargets === 0) {

688703

return "No probe targets.";