greenrun-cli 0.1.3 → 0.1.4

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
@@ -15,6 +15,7 @@ function printHelp() {
15
15
 
16
16
  Usage:
17
17
  greenrun init Interactive setup wizard
18
+ greenrun update Update command templates to latest version
18
19
  greenrun serve Start MCP server
19
20
  greenrun --version, -v Print version
20
21
  greenrun --help, -h Print this help
@@ -42,6 +43,11 @@ async function main() {
42
43
  await runInit(args.slice(1));
43
44
  return;
44
45
  }
46
+ if (command === 'update') {
47
+ const { runUpdate } = await import('./commands/init.js');
48
+ runUpdate();
49
+ return;
50
+ }
45
51
  if (command === 'serve') {
46
52
  const { startServer } = await import('./server.js');
47
53
  await startServer();
@@ -1 +1,2 @@
1
+ export declare function runUpdate(): void;
1
2
  export declare function runInit(args: string[]): Promise<void>;
@@ -153,6 +153,12 @@ function installCommands() {
153
153
  console.log(` Installed /${cmd.replace('.md', '')}`);
154
154
  }
155
155
  }
156
+ export function runUpdate() {
157
+ console.log('\nGreenrun - Updating templates\n');
158
+ installCommands();
159
+ installClaudeMd();
160
+ console.log('\nDone! Templates updated to latest version.\n');
161
+ }
156
162
  export async function runInit(args) {
157
163
  const opts = parseFlags(args);
158
164
  const interactive = !opts.token;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greenrun-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI and MCP server for Greenrun - browser test management for Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",