fastclaw-cli 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { readFileSync as readFileSync3 } from "fs";
5
+ import { fileURLToPath } from "url";
6
+ import { dirname, join as join2 } from "path";
4
7
  import { Command } from "commander";
5
8
 
6
9
  // src/commands/config-cmd.ts
@@ -1484,7 +1487,9 @@ function registerSetupCommand(program2) {
1484
1487
  }
1485
1488
 
1486
1489
  // src/index.ts
1487
- var program = new Command().name("fastclaw").description("CLI for managing FastClaw bots").version("0.1.0").option("--url <url>", "FastClaw server URL").option("--admin-token <token>", "Admin API token").option("--app-token <token>", "App API token").option("--json", "Output as JSON");
1490
+ var __dirname = dirname(fileURLToPath(import.meta.url));
1491
+ var pkg = JSON.parse(readFileSync3(join2(__dirname, "..", "package.json"), "utf-8"));
1492
+ var program = new Command().name("fastclaw").description("CLI for managing FastClaw bots").version(pkg.version).option("--url <url>", "FastClaw server URL").option("--admin-token <token>", "Admin API token").option("--app-token <token>", "App API token").option("--json", "Output as JSON");
1488
1493
  registerSetupCommand(program);
1489
1494
  registerConfigCommand(program);
1490
1495
  registerAdminCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastclaw-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI and SDK for managing FastClaw bots",
5
5
  "type": "module",
6
6
  "main": "dist/sdk.js",