Skip to content

Commit 0b7b9f2

Browse files
authored
fix: register OpenClaw CLI command metadata (#82)
1 parent dc51a4e commit 0b7b9f2

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.changeset/calm-rivers-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@browserbasehq/openclaw-browserbase': patch
3+
---
4+
5+
Register the Browserbase OpenClaw CLI command with explicit command metadata so `openclaw browserbase ...` commands are discoverable.

packages/openclaw-browserbase/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function registerCli(
197197
api: OpenClawPluginApi,
198198
logger: OpenClawPluginApi['logger']
199199
): void {
200-
api.registerCli(({ program }: { program: any }) => {
200+
const registerBrowserbaseCommands = ({ program }: { program: any }) => {
201201
const browserbase = program
202202
.command('browserbase')
203203
.description('Browserbase plugin setup and credential helpers');
@@ -453,7 +453,9 @@ function registerCli(
453453
.action((options: any) => {
454454
console.log(resolveConfigPath(options.config));
455455
});
456-
});
456+
};
457+
458+
api.registerCli(registerBrowserbaseCommands, { commands: ['browserbase'] });
457459
}
458460

459461
let didStartupPrompt = false;

0 commit comments

Comments
 (0)