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

推荐订阅源

腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
D
Docker
B
Blog
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
G
Google Developers Blog
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42

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
fix: break plugin command spec import cycle · openclaw/op...
steipete · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2454,7 +2454,8 @@ describe("spawnAcpDirect", () => {

24542454

conversation: expect.objectContaining({

24552455

channel: "telegram",

24562456

accountId: "default",

2457-

conversationId: "-1003342490704:topic:2",

2457+

conversationId: "2",

2458+

parentConversationId: "-1003342490704",

24582459

}),

24592460

}),

24602461

);

Original file line numberDiff line numberDiff line change

@@ -79,7 +79,7 @@ vi.mock("../../auto-reply/commands-registry.js", () => ({

7979

vi.mock("../../auto-reply/skill-commands.js", () => ({

8080

listSkillCommandsForAgents: vi.fn(() => mockSkillCommands),

8181

}));

82-

vi.mock("../../plugins/command-registry-state.js", () => ({

82+

vi.mock("../../plugins/command-specs.js", () => ({

8383

getPluginCommandSpecs: vi.fn((provider?: string) => {

8484

if (provider === "whatsapp") {

8585

return [];

Original file line numberDiff line numberDiff line change

@@ -9,7 +9,7 @@ import { listSkillCommandsForAgents } from "../../auto-reply/skill-commands.js";

99

import { getChannelPlugin } from "../../channels/plugins/index.js";

1010

import { loadConfig } from "../../config/config.js";

1111

import type { OpenClawConfig } from "../../config/types.openclaw.js";

12-

import { getPluginCommandSpecs } from "../../plugins/command-registry-state.js";

12+

import { getPluginCommandSpecs } from "../../plugins/command-specs.js";

1313

import { listPluginCommands } from "../../plugins/commands.js";

1414

import { normalizeOptionalLowercaseString } from "../../shared/string-coerce.js";

1515

import type { CommandEntry, CommandsListResult } from "../protocol/index.js";

Original file line numberDiff line numberDiff line change

@@ -77,10 +77,8 @@ export {

7777

listSkillCommandsForWorkspace,

7878

resolveSkillCommandInvocation,

7979

} from "../auto-reply/skill-commands.js";

80-

export {

81-

getPluginCommandSpecs,

82-

listProviderPluginCommandSpecs,

83-

} from "../plugins/command-registration.js";

80+

export { getPluginCommandSpecs } from "../plugins/command-specs.js";

81+

export { listProviderPluginCommandSpecs } from "../plugins/command-registry-state.js";

8482

export type { SkillCommandSpec } from "../agents/skills.js";

8583

export {

8684

buildModelsProviderData,

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,6 @@ import {

66

import {

77

clearPluginCommands,

88

clearPluginCommandsForPlugin,

9-

getPluginCommandSpecs,

109

isPluginCommandRegistryLocked,

1110

listProviderPluginCommandSpecs,

1211

pluginCommands,

@@ -197,10 +196,5 @@ export function registerPluginCommand(

197196

return { ok: true };

198197

}

199198
200-

export {

201-

clearPluginCommands,

202-

clearPluginCommandsForPlugin,

203-

getPluginCommandSpecs,

204-

listProviderPluginCommandSpecs,

205-

};

199+

export { clearPluginCommands, clearPluginCommandsForPlugin, listProviderPluginCommandSpecs };

206200

export type { RegisteredPluginCommand };

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,3 @@

1-

import { getLoadedChannelPlugin } from "../channels/plugins/index.js";

2-

import { resolveReadOnlyChannelCommandDefaults } from "../channels/plugins/read-only-command-defaults.js";

31

import { resolveGlobalSingleton } from "../shared/global-singleton.js";

42

import { normalizeOptionalLowercaseString } from "../shared/string-coerce.js";

53

import type { OpenClawPluginCommandDefinition } from "./types.js";

@@ -83,24 +81,6 @@ function resolvePluginNativeName(

8381

return command.name;

8482

}

8583
86-

export function getPluginCommandSpecs(provider?: string): Array<{

87-

name: string;

88-

description: string;

89-

acceptsArgs: boolean;

90-

}> {

91-

const providerName = normalizeOptionalLowercaseString(provider);

92-

if (

93-

providerName &&

94-

(

95-

getLoadedChannelPlugin(providerName)?.commands ??

96-

resolveReadOnlyChannelCommandDefaults(providerName)

97-

)?.nativeCommandsAutoEnabled !== true

98-

) {

99-

return [];

100-

}

101-

return listProviderPluginCommandSpecs(provider);

102-

}

103-
10484

/** Resolve plugin command specs for a provider's native naming surface without support gating. */

10585

export function listProviderPluginCommandSpecs(provider?: string): Array<{

10686

name: string;

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,22 @@

1+

import { getLoadedChannelPlugin } from "../channels/plugins/index.js";

2+

import { resolveReadOnlyChannelCommandDefaults } from "../channels/plugins/read-only.js";

3+

import { normalizeOptionalLowercaseString } from "../shared/string-coerce.js";

4+

import { listProviderPluginCommandSpecs } from "./command-registry-state.js";

5+
6+

export function getPluginCommandSpecs(provider?: string): Array<{

7+

name: string;

8+

description: string;

9+

acceptsArgs: boolean;

10+

}> {

11+

const providerName = normalizeOptionalLowercaseString(provider);

12+

if (

13+

providerName &&

14+

(

15+

getLoadedChannelPlugin(providerName)?.commands ??

16+

resolveReadOnlyChannelCommandDefaults(providerName)

17+

)?.nativeCommandsAutoEnabled !== true

18+

) {

19+

return [];

20+

}

21+

return listProviderPluginCommandSpecs(provider);

22+

}

Original file line numberDiff line numberDiff line change

@@ -12,7 +12,6 @@ import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";

1212

import {

1313

clearPluginCommands,

1414

clearPluginCommandsForPlugin,

15-

getPluginCommandSpecs,

1615

listPluginInvocationKeys,

1716

listProviderPluginCommandSpecs,

1817

registerPluginCommand,

@@ -24,6 +23,7 @@ import {

2423

setPluginCommandRegistryLocked,

2524

type RegisteredPluginCommand,

2625

} from "./command-registry-state.js";

26+

import { getPluginCommandSpecs } from "./command-specs.js";

2727

import {

2828

detachPluginConversationBinding,

2929

getCurrentPluginConversationBinding,

Original file line numberDiff line numberDiff line change

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

2222

type DetachedTaskLifecycleRuntime,

2323

} from "../tasks/detached-task-runtime-state.js";

2424

import { withEnv } from "../test-utils/env.js";

25-

import { clearPluginCommands, getPluginCommandSpecs } from "./command-registry-state.js";

25+

import { clearPluginCommands } from "./command-registry-state.js";

26+

import { getPluginCommandSpecs } from "./command-specs.js";

2627

import {

2728

getGlobalHookRunner,

2829

getGlobalPluginRegistry,