@diggerhq/catty 0.5.2 → 0.5.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/README.md CHANGED
@@ -42,6 +42,21 @@ catty config set server <url>
42
42
  catty logout
43
43
  ```
44
44
 
45
+ ## Configuration
46
+
47
+ ### Environment Variables
48
+
49
+ | Variable | Description | Default |
50
+ |----------|-------------|---------|
51
+ | `CATTY_API_URL` | Override the API server URL | `https://catty.dev` |
52
+
53
+ Example for self-hosted instances:
54
+
55
+ ```bash
56
+ export CATTY_API_URL=https://your-catty-server.com
57
+ catty login
58
+ ```
59
+
45
60
  ## Requirements
46
61
 
47
62
  - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) must be installed on your system
package/bin/catty ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require('child_process');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const platform = os.platform();
8
+ const arch = os.arch();
9
+
10
+ const platformMap = { darwin: 'darwin', linux: 'linux' };
11
+ const archMap = { x64: 'amd64', arm64: 'arm64' };
12
+
13
+ const goPlatform = platformMap[platform];
14
+ const goArch = archMap[arch];
15
+
16
+ if (!goPlatform || !goArch) {
17
+ console.error(`Unsupported platform: ${platform}/${arch}`);
18
+ process.exit(1);
19
+ }
20
+
21
+ const binary = path.join(__dirname, `catty-${goPlatform}-${goArch}`);
22
+
23
+ try {
24
+ execFileSync(binary, process.argv.slice(2), { stdio: 'inherit' });
25
+ } catch (err) {
26
+ if (err.status !== undefined) process.exit(err.status);
27
+ console.error(`Failed to run catty: ${err.message}`);
28
+ process.exit(1);
29
+ }
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diggerhq/catty",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "A Claude Code wrapper with centralized streaming for cross-device access",
5
5
  "bin": {
6
6
  "catty": "./bin/catty"