@jackwener/opencli 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -146,6 +146,9 @@ export function runCli(BUILTIN_CLIS, USER_CLIS) {
146
146
  siteCmd = program.command(cmd.site).description(`${cmd.site} commands`);
147
147
  siteGroups.set(cmd.site, siteCmd);
148
148
  }
149
+ // Skip if this subcommand was already hardcoded (e.g. antigravity serve)
150
+ if (siteCmd.commands.some((c) => c.name() === cmd.name))
151
+ continue;
149
152
  const subCmd = siteCmd.command(cmd.name).description(cmd.description);
150
153
  // Register positional args first, then named options
151
154
  const positionalArgs = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackwener/opencli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cli.ts CHANGED
@@ -130,6 +130,8 @@ export function runCli(BUILTIN_CLIS: string, USER_CLIS: string): void {
130
130
  for (const [, cmd] of registry) {
131
131
  let siteCmd = siteGroups.get(cmd.site);
132
132
  if (!siteCmd) { siteCmd = program.command(cmd.site).description(`${cmd.site} commands`); siteGroups.set(cmd.site, siteCmd); }
133
+ // Skip if this subcommand was already hardcoded (e.g. antigravity serve)
134
+ if (siteCmd.commands.some((c: Command) => c.name() === cmd.name)) continue;
133
135
  const subCmd = siteCmd.command(cmd.name).description(cmd.description);
134
136
 
135
137
  // Register positional args first, then named options