@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 +4 -0
- package/dist/commands/pulse.js +21 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/commands/pulse.js
CHANGED
|
@@ -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
|
-
|
|
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)
|
|
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;
|