@diggerhq/catty 0.5.0 → 0.5.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/README.md CHANGED
@@ -5,7 +5,7 @@ A Claude Code wrapper with centralized streaming for cross-device access.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install -g catty-cli
8
+ npm install -g @diggerhq/catty
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -35,7 +35,7 @@ catty version
35
35
  # View configuration
36
36
  catty config get
37
37
 
38
- # Set server URL
38
+ # Set server URL (for self-hosted instances)
39
39
  catty config set server <url>
40
40
 
41
41
  # Logout
@@ -44,10 +44,9 @@ catty logout
44
44
 
45
45
  ## Requirements
46
46
 
47
- - [Claude Code](https://claude.ai/code) must be installed on your system
47
+ - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) must be installed on your system
48
48
  - Node.js 16+ (for npm installation)
49
49
 
50
50
  ## License
51
51
 
52
52
  MIT
53
-
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@diggerhq/catty",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "A Claude Code wrapper with centralized streaming for cross-device access",
5
5
  "bin": {
6
6
  "catty": "./bin/catty"
7
7
  },
8
8
  "scripts": {
9
- "postinstall": "node scripts/install.js",
10
9
  "build": "bash scripts/build.sh"
11
10
  },
12
11
  "keywords": [
@@ -32,7 +31,6 @@
32
31
  ],
33
32
  "files": [
34
33
  "bin/",
35
- "scripts/",
36
34
  "README.md"
37
35
  ]
38
36
  }
package/scripts/build.sh DELETED
@@ -1,40 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- # Build script for catty CLI
5
- # Builds binaries for all supported platforms
6
-
7
- cd "$(dirname "$0")/.."
8
-
9
- VERSION=$(node -p "require('./package.json').version")
10
- echo "Building catty v${VERSION}..."
11
-
12
- # Clean previous builds
13
- rm -rf bin/*
14
- mkdir -p bin
15
-
16
- # Build for each platform
17
- PLATFORMS=(
18
- "darwin/amd64"
19
- "darwin/arm64"
20
- "linux/amd64"
21
- "linux/arm64"
22
- )
23
-
24
- for platform in "${PLATFORMS[@]}"; do
25
- OS="${platform%/*}"
26
- ARCH="${platform#*/}"
27
-
28
- OUTPUT="bin/catty-${OS}-${ARCH}"
29
- if [ "$OS" = "windows" ]; then
30
- OUTPUT="${OUTPUT}.exe"
31
- fi
32
-
33
- echo " Building for ${OS}/${ARCH}..."
34
- GOOS=$OS GOARCH=$ARCH go build -ldflags="-s -w -X main.version=${VERSION}" -o "$OUTPUT" ./cmd/catty
35
- done
36
-
37
- echo ""
38
- echo "Built binaries:"
39
- ls -la bin/
40
-
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const fs = require('fs');
4
- const path = require('path');
5
- const os = require('os');
6
-
7
- const platform = os.platform();
8
- const arch = os.arch();
9
-
10
- // Map Node.js platform/arch to Go naming convention
11
- const platformMap = {
12
- darwin: 'darwin',
13
- linux: 'linux',
14
- win32: 'windows',
15
- };
16
-
17
- const archMap = {
18
- x64: 'amd64',
19
- arm64: 'arm64',
20
- };
21
-
22
- const goPlatform = platformMap[platform];
23
- const goArch = archMap[arch];
24
-
25
- if (!goPlatform || !goArch) {
26
- console.error(`Unsupported platform: ${platform}/${arch}`);
27
- process.exit(1);
28
- }
29
-
30
- const binDir = path.join(__dirname, '..', 'bin');
31
- const ext = platform === 'win32' ? '.exe' : '';
32
- const sourceBinary = path.join(binDir, `catty-${goPlatform}-${goArch}${ext}`);
33
- const targetBinary = path.join(binDir, `catty${ext}`);
34
-
35
- // Check if source binary exists
36
- if (!fs.existsSync(sourceBinary)) {
37
- console.error(`Binary not found for your platform: ${platform}/${arch}`);
38
- console.error(`Expected: ${sourceBinary}`);
39
- process.exit(1);
40
- }
41
-
42
- // Copy or symlink the correct binary
43
- try {
44
- // Remove existing target if it exists
45
- if (fs.existsSync(targetBinary)) {
46
- fs.unlinkSync(targetBinary);
47
- }
48
-
49
- // Copy the binary (more reliable cross-platform than symlink)
50
- fs.copyFileSync(sourceBinary, targetBinary);
51
-
52
- // Make executable on Unix
53
- if (platform !== 'win32') {
54
- fs.chmodSync(targetBinary, 0o755);
55
- }
56
-
57
- console.log(`✓ Installed catty for ${platform}/${arch}`);
58
- } catch (err) {
59
- console.error(`Failed to install binary: ${err.message}`);
60
- process.exit(1);
61
- }
62
-