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

推荐订阅源

S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园 - 【当耐特】
月光博客
月光博客
Vercel News
Vercel News
D
Docker
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
有赞技术团队
有赞技术团队
雷峰网
雷峰网
博客园 - 聂微东
小众软件
小众软件
Y
Y Combinator Blog
腾讯CDC
L
LangChain Blog
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow 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
fix: mark plugin command groups in root help · openclaw/o...
steipete · 2026-05-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -43,7 +43,16 @@ const EXAMPLES = [

4343

],

4444

] as const;

4545
46-

export function configureProgramHelp(program: Command, ctx: ProgramContext) {

46+

export function configureProgramHelp(

47+

program: Command,

48+

ctx: ProgramContext,

49+

options?: { commandsWithSubcommands?: ReadonlySet<string> },

50+

) {

51+

const commandsWithSubcommands = new Set([

52+

...ROOT_COMMANDS_WITH_SUBCOMMANDS,

53+

...(options?.commandsWithSubcommands ?? []),

54+

]);

55+
4756

program

4857

.name(CLI_NAME)

4958

.description("")

@@ -77,7 +86,7 @@ export function configureProgramHelp(program: Command, ctx: ProgramContext) {

7786

optionTerm: (option) => theme.option(option.flags),

7887

subcommandTerm: (cmd) => {

7988

const isRootCommand = cmd.parent === program;

80-

const hasSubcommands = isRootCommand && ROOT_COMMANDS_WITH_SUBCOMMANDS.has(cmd.name());

89+

const hasSubcommands = isRootCommand && commandsWithSubcommands.has(cmd.name());

8190

return theme.command(hasSubcommands ? `${cmd.name()} *` : cmd.name());

8291

},

8392

});

Original file line numberDiff line numberDiff line change

@@ -80,6 +80,7 @@ describe("root help", () => {

8080

expect(text).toContain("status");

8181

expect(text).toContain("config");

8282

expect(text).toContain("matrix");

83+

expect(text).toContain("matrix *");

8384

expect(text).toContain("Matrix channel utilities");

8485

});

8586
Original file line numberDiff line numberDiff line change

@@ -19,19 +19,28 @@ export type RootHelpRenderOptions = Pick<PluginLoadOptions, "pluginSdkResolution

1919
2020

async function buildRootHelpProgram(renderOptions?: RootHelpRenderOptions): Promise<Command> {

2121

const program = new Command();

22-

configureProgramHelp(program, {

23-

programVersion: VERSION,

24-

channelOptions: [],

25-

messageChannelOptions: "",

26-

agentChannelOptions: "",

27-

});

28-
2922

const pluginDescriptors =

3023

renderOptions?.includePluginDescriptors === true || renderOptions?.config

3124

? await getPluginCliCommandDescriptors(renderOptions.config, renderOptions.env, {

3225

pluginSdkResolution: renderOptions.pluginSdkResolution,

3326

})

3427

: [];

28+

configureProgramHelp(

29+

program,

30+

{

31+

programVersion: VERSION,

32+

channelOptions: [],

33+

messageChannelOptions: "",

34+

agentChannelOptions: "",

35+

},

36+

{

37+

commandsWithSubcommands: new Set(

38+

pluginDescriptors

39+

.filter((descriptor) => descriptor.hasSubcommands)

40+

.map((descriptor) => descriptor.name),

41+

),

42+

},

43+

);

3544
3645

addCommandDescriptorsToProgram(

3746

program,