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

推荐订阅源

S
SegmentFault 最新的问题
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
月光博客
月光博客
IT之家
IT之家
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
小众软件
小众软件
C
Check Point Blog
B
Blog RSS Feed
H
Help Net Security
博客园 - 司徒正美
L
LangChain Blog
MongoDB | Blog
MongoDB | Blog
B
Blog
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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(extensions): remove unused dead helpers · opencl...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -20,7 +20,7 @@ vi.mock("./cli-auth-seam.js", async (importActual) => {

2020

};

2121

});

2222
23-

const { buildAnthropicCliMigrationResult, hasClaudeCliAuth } = await import("./cli-migration.js");

23+

const { buildAnthropicCliMigrationResult } = await import("./cli-migration.js");

2424

const { resolveKnownAnthropicModelRef } = await import("./claude-model-refs.js");

2525

const { createTestWizardPrompter, registerSingleProviderPlugin } =

2626

await import("openclaw/plugin-sdk/plugin-test-runtime");

@@ -135,23 +135,6 @@ function createProviderAuthMethodNonInteractiveContext(

135135

}

136136
137137

describe("anthropic cli migration", () => {

138-

it("detects local Claude CLI auth", () => {

139-

readClaudeCliCredentialsForSetup.mockReturnValue({ type: "oauth" });

140-
141-

expect(hasClaudeCliAuth()).toBe(true);

142-

});

143-
144-

it("uses the non-interactive Claude auth probe without keychain prompts", () => {

145-

readClaudeCliCredentialsForSetup.mockReset();

146-

readClaudeCliCredentialsForSetupNonInteractive.mockReset();

147-

readClaudeCliCredentialsForSetup.mockReturnValue(null);

148-

readClaudeCliCredentialsForSetupNonInteractive.mockReturnValue({ type: "oauth" });

149-
150-

expect(hasClaudeCliAuth({ allowKeychainPrompt: false })).toBe(true);

151-

expect(readClaudeCliCredentialsForSetup).not.toHaveBeenCalled();

152-

expect(readClaudeCliCredentialsForSetupNonInteractive).toHaveBeenCalledTimes(1);

153-

});

154-
155138

it("keeps anthropic defaults and selects the claude-cli runtime", () => {

156139

const result = buildAnthropicCliMigrationResult({

157140

agents: {

Original file line numberDiff line numberDiff line change

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

1212

normalizeLowercaseStringOrEmpty,

1313

} from "openclaw/plugin-sdk/string-coerce-runtime";

1414

import { resolveClaudeCliAnthropicModelRefs } from "./claude-model-refs.js";

15-

import {

16-

readClaudeCliCredentialsForSetup,

17-

readClaudeCliCredentialsForSetupNonInteractive,

18-

} from "./cli-auth-seam.js";

15+

import type { readClaudeCliCredentialsForSetup } from "./cli-auth-seam.js";

1916

import { CLAUDE_CLI_BACKEND_ID, CLAUDE_CLI_DEFAULT_ALLOWLIST_REFS } from "./cli-shared.js";

2017
2118

type AgentDefaultsModel = NonNullable<NonNullable<OpenClawConfig["agents"]>["defaults"]>["model"];

@@ -172,15 +169,6 @@ function modelEntryWithClaudeCliRuntime(entry: unknown): Record<string, unknown>

172169

return base;

173170

}

174171
175-

/** Return whether Claude CLI credentials are available for setup migration. */

176-

export function hasClaudeCliAuth(options?: { allowKeychainPrompt?: boolean }): boolean {

177-

return Boolean(

178-

options?.allowKeychainPrompt === false

179-

? readClaudeCliCredentialsForSetupNonInteractive()

180-

: readClaudeCliCredentialsForSetup(),

181-

);

182-

}

183-
184172

function buildClaudeCliAuthProfiles(

185173

credential?: ClaudeCliCredential | null,

186174

): ProviderAuthResult["profiles"] {

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,7 @@

11

// Discord provider module implements model/runtime integration.

22

import { warn, type RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";

33

import { formatErrorMessage } from "openclaw/plugin-sdk/ssrf-runtime";

4-

import { Client, overwriteApplicationCommands, type RequestClient } from "../internal/discord.js";

4+

import { Client, type RequestClient } from "../internal/discord.js";

55

import {

66

attachDiscordDeployRestContext,

77

attachDiscordDeployRequestBody,

@@ -206,16 +206,3 @@ export function runDiscordCommandDeployInBackground(params: {

206206

);

207207

});

208208

}

209-
210-

export async function clearDiscordNativeCommands(params: {

211-

client: Client;

212-

applicationId: string;

213-

runtime: RuntimeEnv;

214-

}) {

215-

try {

216-

await overwriteApplicationCommands(params.client.rest, params.applicationId, []);

217-

params.runtime.log?.("discord: cleared native commands (commands.native=false)");

218-

} catch (err) {

219-

params.runtime.error?.(`discord: failed to clear native commands: ${String(err)}`);

220-

}

221-

}

Original file line numberDiff line numberDiff line change

@@ -60,20 +60,6 @@ function resolveMemoryToolContext(options: MemoryToolOptions) {

6060

return { cfg, agentId };

6161

}

6262
63-

export async function getMemoryManagerContext(params: {

64-

cfg: OpenClawConfig;

65-

agentId: string;

66-

}): Promise<

67-

| {

68-

manager: NonNullable<MemorySearchManagerResult["manager"]>;

69-

}

70-

| {

71-

error: string | undefined;

72-

}

73-

> {

74-

return await getMemoryManagerContextWithPurpose({ ...params, purpose: undefined });

75-

}

76-
7763

export async function getMemoryManagerContextWithPurpose(params: {

7864

cfg: OpenClawConfig;

7965

agentId: string;

Original file line numberDiff line numberDiff line change

@@ -329,7 +329,3 @@ export function buildOpenRouterMusicGenerationProvider(): MusicGenerationProvide

329329

},

330330

};

331331

}

332-
333-

export const openRouterMusicTestInternals = {

334-

readOpenRouterAudioStream,

335-

};

Original file line numberDiff line numberDiff line change

@@ -470,9 +470,3 @@ async function resolveCanonicalCandidate(targetPath: string): Promise<string> {

470470

cursor = parent;

471471

}

472472

}

473-
474-

export function setReadOpenFlagsResolverForTest(

475-

_resolver: (() => { flags: number; supportsNoFollow: boolean }) | undefined,

476-

): void {

477-

// Retained for older OpenShell tests; pinned reads now delegate to fs-safe.

478-

}