cashclaw 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cashclaw",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Turn your OpenClaw into a money-making machine",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli/index.js CHANGED
@@ -16,6 +16,9 @@ import { fileURLToPath } from 'url';
16
16
  const __filename = fileURLToPath(import.meta.url);
17
17
  const __dirname = path.dirname(__filename);
18
18
 
19
+ const pkgPath = path.resolve(__dirname, '../../package.json');
20
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
21
+
19
22
  const orange = chalk.hex('#FF6B35');
20
23
  const green = chalk.hex('#16C784');
21
24
  const dim = chalk.dim;
@@ -25,7 +28,7 @@ const program = new Command();
25
28
  program
26
29
  .name('cashclaw')
27
30
  .description('Turn your OpenClaw AI agent into a freelance business')
28
- .version('1.0.0', '-v, --version');
31
+ .version(pkg.version, '-v, --version');
29
32
 
30
33
  // ─── cashclaw init ─────────────────────────────────────────────────────
31
34
  program
@@ -1,5 +1,12 @@
1
1
  import chalk from 'chalk';
2
2
  import boxen from 'boxen';
3
+ import fs from 'fs';
4
+ import path from 'path';
5
+ import { fileURLToPath } from 'url';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
9
+ const pkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../package.json'), 'utf-8'));
3
10
 
4
11
  const orange = chalk.hex('#FF6B35');
5
12
  const green = chalk.hex('#16C784');
@@ -15,7 +22,7 @@ const LOGO = `
15
22
 
16
23
  export function showBanner() {
17
24
  const logoColored = orange.bold(LOGO);
18
- const version = dim('v1.0.0');
25
+ const version = dim(`v${pkg.version}`);
19
26
  const tagline = green('Turn your AI agent into a freelance business');
20
27
  const site = dim('https://cashclawai.com');
21
28
 
@@ -37,7 +44,7 @@ export function showBanner() {
37
44
  export function showMiniBanner() {
38
45
  console.log(
39
46
  orange.bold('\n CashClaw') +
40
- dim(' v1.0.0') +
47
+ dim(` v${pkg.version}`) +
41
48
  green(' | ') +
42
49
  dim('cashclawai.com\n')
43
50
  );