@pikku/core 0.12.144 → 0.12.145

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.
@@ -75,6 +75,7 @@ export interface CLICommandMeta {
75
75
  subcommands?: Record<string, CLICommandMeta>;
76
76
  middleware?: MiddlewareMetadata[];
77
77
  isDefault?: boolean;
78
+ hidden?: boolean;
78
79
  }
79
80
  /**
80
81
  * CLI metadata collection (per program)
@@ -209,6 +210,8 @@ export type CoreCLICommandConfig<FuncConfig, PikkuMiddleware extends CorePikkuMi
209
210
  permissions?: any[];
210
211
  /** Runs when the parent is invoked with no subcommand named. */
211
212
  isDefault?: boolean;
213
+ /** Still runs, but is left out of `--help`: for commands a program invokes, not a person. */
214
+ hidden?: boolean;
212
215
  };
213
216
  /**
214
217
  * CLI command definition
@@ -227,6 +230,7 @@ export interface CoreCLICommand<In, Out, PikkuFunctionConfig extends CorePikkuFu
227
230
  tags?: string[];
228
231
  subcommands?: Subcommands;
229
232
  isDefault?: boolean;
233
+ hidden?: boolean;
230
234
  }
231
235
  /**
232
236
  * Shorthand command definition (just a function)
@@ -494,6 +494,8 @@ export function generateCommandHelp(programName, allMeta, commandPath = []) {
494
494
  lines.push('');
495
495
  lines.push('Commands:');
496
496
  for (const [name, cmd] of Object.entries(meta.commands)) {
497
+ if (cmd.hidden)
498
+ continue;
497
499
  const desc = cmd.description || '';
498
500
  const defaultMarker = cmd.isDefault ? ' (default)' : '';
499
501
  lines.push(` ${name.padEnd(20)} ${desc}${defaultMarker}`);
@@ -532,6 +534,8 @@ export function generateCommandHelp(programName, allMeta, commandPath = []) {
532
534
  lines.push('');
533
535
  lines.push('Subcommands:');
534
536
  for (const [name, sub] of Object.entries(commandMeta.subcommands)) {
537
+ if (sub.hidden)
538
+ continue;
535
539
  const desc = sub.description || '';
536
540
  lines.push(` ${name.padEnd(20)} ${desc}`);
537
541
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/core",
3
- "version": "0.12.144",
3
+ "version": "0.12.145",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/pikkujs/pikku.git",
@@ -118,7 +118,7 @@
118
118
  },
119
119
  "devDependencies": {
120
120
  "@ag-ui/core": "0.0.59",
121
- "@pikku/deploy": "^0.12.16",
121
+ "@pikku/deploy": "^0.12.17",
122
122
  "@types/node": "^26.6.5",
123
123
  "esbuild": "~0.28.2",
124
124
  "tsx": "^4.23.15"