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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
V
V2EX
美团技术团队
H
Help Net Security
月光博客
月光博客
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
U
Unit 42
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - Franky
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
MyScale Blog
MyScale Blog
B
Blog
雷峰网
雷峰网
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss

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(agents): trim unused model helper exports · open...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -11,7 +11,7 @@ import type { JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js";

1111

import { killProcessTree, signalProcessTree } from "../process/kill-tree.js";

1212

import { prepareOomScoreAdjustedSpawn } from "../process/linux-oom-score.js";

1313
14-

export type OpenClawStdioServerParameters = {

14+

type OpenClawStdioServerParameters = {

1515

command: string;

1616

args?: string[];

1717

env?: Record<string, string>;

Original file line numberDiff line numberDiff line change

@@ -19,7 +19,7 @@ export type ResolvedProviderAuth = {

1919

};

2020
2121

/** Stable provider auth error code used by fallback/retry paths. */

22-

export type ProviderAuthErrorCode = "missing-api-key" | "missing-provider-auth";

22+

type ProviderAuthErrorCode = "missing-api-key" | "missing-provider-auth";

2323
2424

/** Base provider auth error with a stable code for retry/fallback logic. */

2525

export class ProviderAuthError extends Error {

Original file line numberDiff line numberDiff line change

@@ -14,10 +14,7 @@ import {

1414

} from "./model-visibility-policy.js";

1515
1616

type ModelCatalogVisibilityView = "default" | "configured" | "all";

17-

export type ProviderAuthChecker = (

18-

provider: string,

19-

modelApi?: string,

20-

) => boolean | Promise<boolean>;

17+

type ProviderAuthChecker = (provider: string, modelApi?: string) => boolean | Promise<boolean>;

2118

const OPENAI_PROVIDER_ID = "openai";

2219

const OPENAI_CODEX_RESPONSES_API = "openai-chatgpt-responses";

2320

const OPENAI_CODEX_ROUTABLE_MODEL_IDS = new Set([

@@ -56,7 +53,7 @@ async function resolveProviderAuthCheck(

5653

return isPromiseLike(result) ? await result : result;

5754

}

5855
59-

export async function modelCatalogEntryHasProviderAuth(

56+

async function modelCatalogEntryHasProviderAuth(

6057

providerAuthChecker: ProviderAuthChecker,

6158

entry: ModelCatalogEntry,

6259

): Promise<boolean> {

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,7 @@

66

const MAX_TOKENS_PARAM_KEYS = ["maxTokens", "max_completion_tokens", "max_tokens"] as const;

77
88

/** Return a finite non-negative max-token value, or undefined for invalid input. */

9-

export function resolveNonNegativeMaxTokensParam(value: unknown): number | undefined {

9+

function resolveNonNegativeMaxTokensParam(value: unknown): number | undefined {

1010

return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : undefined;

1111

}

1212
Original file line numberDiff line numberDiff line change

@@ -31,21 +31,3 @@ export function createModelPickerVisibleProviderPredicate(

3131

return !isRetiredModelPickerProvider(normalized) && !cliRuntimeProviders.has(normalized);

3232

};

3333

}

34-
35-

/** Returns whether a provider id should appear in the model picker. */

36-

export function isModelPickerVisibleProvider(provider: string): boolean {

37-

const normalized = normalizeProviderId(provider);

38-

return (

39-

!isRetiredModelPickerProvider(normalized) &&

40-

!isCliRuntimeProvider(normalized, { includeSetupRegistry: true })

41-

);

42-

}

43-
44-

/** Returns whether a provider/model ref should appear in the model picker. */

45-

export function isModelPickerVisibleModelRef(ref: string): boolean {

46-

const separatorIndex = ref.indexOf("/");

47-

if (separatorIndex <= 0) {

48-

return true;

49-

}

50-

return isModelPickerVisibleProvider(ref.slice(0, separatorIndex));

51-

}