Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ”– chore(cli): bump version to 0.0.68 and hide deprecated verify (#21498)

Arvin Xu4f87570597e5
diff --git a/apps/cli/man/man1/lh.1 b/apps/cli/man/man1/lh.1
index 8ab130ef833..4abf3f5668b 100644
--- a/apps/cli/man/man1/lh.1
+++ b/apps/cli/man/man1/lh.1
@@ -1,6 +1,6 @@
.\" Code generated by `npm run man:generate`; DO NOT EDIT.
.\" Manual command details come from the Commander command tree.
-.TH LH 1 "" "@lobehub/cli 0.0.67" "User Commands"
+.TH LH 1 "" "@lobehub/cli 0.0.68" "User Commands"
.SH NAME
lh \- LobeHub CLI \- manage and connect to LobeHub services
.SH SYNOPSIS
@@ -143,9 +143,6 @@ Manage workspaces and the workspace scope commands run under Alias: ws.
.B user
Manage user account and settings
.TP
-.B verify
-Agent Run verification machinery β€” criteria, rubrics, and per\-run check plans
-.TP
.B acceptance
Delivery acceptances: the cross\-round review loop (checks, feedback, decision)
.TP
diff --git a/apps/cli/package.json b/apps/cli/package.json
index 5e5a524a279..a995bf074e2 100644
--- a/apps/cli/package.json
+++ b/apps/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@lobehub/cli",
- "version": "0.0.67",
+ "version": "0.0.68",
"type": "module",
"bin": {
"lh": "dist/index.js",
diff --git a/apps/cli/src/commands/acceptance/deprecatedVerify.test.ts b/apps/cli/src/commands/acceptance/deprecatedVerify.test.ts
index fb44a954d15..a71da05108d 100644
--- a/apps/cli/src/commands/acceptance/deprecatedVerify.test.ts
+++ b/apps/cli/src/commands/acceptance/deprecatedVerify.test.ts
@@ -85,4 +85,18 @@ describe('`lh verify` moved under `lh acceptance`', () => {
'lh acceptance',
);
});
+
+ it('keeps `lh verify` out of help and the man page', () => {
+ const program = new Command();
+ registerVerifyCommand(program);
+ registerAcceptanceCommands(program);
+
+ const visible = program
+ .createHelp()
+ .visibleCommands(program)
+ .map((c) => c.name());
+
+ expect(visible).toContain('acceptance');
+ expect(visible).not.toContain('verify');
+ });
});
diff --git a/apps/cli/src/commands/acceptance/deprecatedVerify.ts b/apps/cli/src/commands/acceptance/deprecatedVerify.ts
index 5a9ff33c297..d7e26a0683d 100644
--- a/apps/cli/src/commands/acceptance/deprecatedVerify.ts
+++ b/apps/cli/src/commands/acceptance/deprecatedVerify.ts
@@ -23,10 +23,13 @@ const deprecateGroup = (group: Command, replacement: string): Command =>
/**
* The pre-move `lh verify …` command surface. Every command now lives under
* `lh acceptance`; these aliases wire the same implementations and warn, and
- * are scheduled for removal once callers migrate.
+ * are scheduled for removal once callers migrate. Hidden from help and the
+ * man page so only existing callers keep using it.
*/
export function registerVerifyCommand(program: Command) {
- const verify = program.command('verify').description('Deprecated β€” use `lh acceptance`');
+ const verify = program
+ .command('verify', { hidden: true })
+ .description('Deprecated β€” use `lh acceptance`');
// `verify acceptance …` β€” legacy alias of the first-class `lh acceptance`.
registerAcceptanceCommands(verify, { deprecated: true });