@diggerhq/anyware 0.5.13

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 ADDED
@@ -0,0 +1,67 @@
1
+ # Catty CLI
2
+
3
+ A Claude Code wrapper with centralized streaming for cross-device access.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @diggerhq/catty
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Login
14
+
15
+ ```bash
16
+ catty login
17
+ ```
18
+
19
+ This will open a browser for device-based authentication.
20
+
21
+ ### Run Claude
22
+
23
+ ```bash
24
+ catty
25
+ ```
26
+
27
+ Navigate to any folder and run `catty` to start a Claude session. Your session will be streamed to the central server, allowing you to view it from any device (web, mobile).
28
+
29
+ ### Other Commands
30
+
31
+ ```bash
32
+ # View version
33
+ catty version
34
+
35
+ # View configuration
36
+ catty config get
37
+
38
+ # Set server URL (for self-hosted instances)
39
+ catty config set server <url>
40
+
41
+ # Logout
42
+ catty logout
43
+ ```
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
+
60
+ ## Requirements
61
+
62
+ - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) must be installed on your system
63
+ - Node.js 16+ (for npm installation)
64
+
65
+ ## License
66
+
67
+ MIT
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 ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@diggerhq/anyware",
3
+ "version": "0.5.13",
4
+ "description": "A Claude Code wrapper with centralized streaming for cross-device access",
5
+ "bin": {
6
+ "catty": "./bin/catty"
7
+ },
8
+ "scripts": {
9
+ "build": "bash scripts/build.sh"
10
+ },
11
+ "keywords": [
12
+ "claude",
13
+ "cli",
14
+ "ai",
15
+ "code",
16
+ "streaming"
17
+ ],
18
+ "author": "",
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/diggerhq/catty"
23
+ },
24
+ "os": [
25
+ "darwin",
26
+ "linux"
27
+ ],
28
+ "cpu": [
29
+ "x64",
30
+ "arm64"
31
+ ],
32
+ "files": [
33
+ "bin/"
34
+ ]
35
+ }