@diggerhq/catty 0.5.1 → 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.
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.1",
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
-