@vibecodr/cli 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2
4
+
5
+ - show command-specific help for nested `vibecodr pulse <command> --help|-h|-help` requests
6
+
3
7
  ## 0.2.1
4
8
 
5
9
  - preserve encrypted offline sessions when refresh fails because the authorization server is temporarily unavailable
@@ -13,7 +13,22 @@ const PULSE_ACTIONS = {
13
13
  archive: { toolName: "archive_pulse", requiresConfirm: true },
14
14
  restore: { toolName: "restore_pulse", requiresConfirm: true }
15
15
  };
16
- function pulseHelpText() {
16
+ const PULSE_COMMAND_HELP = {
17
+ list: "Usage: vibecodr pulse list [--limit <n>] [--offset <n>]",
18
+ get: "Usage: vibecodr pulse get <pulse-id>",
19
+ status: "Usage: vibecodr pulse status <pulse-id>",
20
+ run: "Usage: vibecodr pulse run <pulse-id> [--input-json <json> | --input-file <path>] --confirm",
21
+ archive: "Usage: vibecodr pulse archive <pulse-id> --confirm",
22
+ restore: "Usage: vibecodr pulse restore <pulse-id> --confirm",
23
+ create: "Usage: vibecodr pulse create --name <name> (--code <source> | --code-file <path>) [--descriptor-json <json> | --descriptor-file <path>] [--slug <slug>] [--visibility public|unlisted|private] --confirm",
24
+ deploy: "Usage: vibecodr pulse deploy --name <name> (--code <source> | --code-file <path>) [--descriptor-json <json> | --descriptor-file <path>] [--slug <slug>] [--visibility public|unlisted|private] --confirm"
25
+ };
26
+ function pulseHelpText(subcommand) {
27
+ if (subcommand) {
28
+ const commandHelp = PULSE_COMMAND_HELP[subcommand];
29
+ if (commandHelp)
30
+ return commandHelp;
31
+ }
17
32
  return [
18
33
  "Usage: vibecodr pulse <command> [options]",
19
34
  "",
@@ -86,10 +101,14 @@ async function invokePulseTool(context, toolName, input) {
86
101
  export async function runPulseCommand(args, context) {
87
102
  const subcommand = args[0];
88
103
  const commandArgs = args.slice(1);
89
- if (!subcommand || isHelpToken(subcommand) || commandArgs.some((arg) => isHelpToken(arg))) {
104
+ if (!subcommand || isHelpToken(subcommand)) {
90
105
  context.output.info(pulseHelpText());
91
106
  return;
92
107
  }
108
+ if (commandArgs.some((arg) => isHelpToken(arg))) {
109
+ context.output.info(pulseHelpText(subcommand));
110
+ return;
111
+ }
93
112
  if (subcommand === "create" || subcommand === "deploy") {
94
113
  await runPulsePublishCommand(commandArgs, context);
95
114
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibecodr/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Vibecodr CLI for login, live MCP tool discovery, and live tool invocation.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",