happy-coder 0.1.3 → 0.1.6
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/dist/index.cjs +1458 -977
- package/dist/index.mjs +1455 -974
- package/package.json +9 -6
- package/scripts/claudeInteractiveLaunch.cjs +36 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "happy-coder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Claude Code session sharing CLI",
|
|
5
5
|
"author": "Kirill Dubovitskiy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,26 +26,29 @@
|
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
|
-
"bin"
|
|
29
|
+
"bin",
|
|
30
|
+
"scripts"
|
|
30
31
|
],
|
|
31
32
|
"scripts": {
|
|
32
33
|
"test": "vitest run",
|
|
33
34
|
"test:watch": "vitest",
|
|
34
35
|
"build": "pkgroll",
|
|
35
|
-
"prepublishOnly": "yarn build && yarn test",
|
|
36
|
-
"dev": "
|
|
36
|
+
"prepublishOnly": "tsc --noEmit && yarn build && yarn test",
|
|
37
|
+
"dev": "npx tsx --env-file .env.sample src/index.ts",
|
|
38
|
+
"dev:local": "HANDY_SERVER_URL=http://localhost:3005 npx tsx --env-file .env.sample src/index.ts"
|
|
37
39
|
},
|
|
38
40
|
"dependencies": {
|
|
39
41
|
"@anthropic-ai/claude-code": "^1.0.51",
|
|
42
|
+
"@anthropic-ai/sdk": "^0.56.0",
|
|
40
43
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
41
44
|
"@types/qrcode-terminal": "^0.12.2",
|
|
42
45
|
"axios": "^1.10.0",
|
|
43
46
|
"chalk": "^5.4.1",
|
|
44
|
-
"
|
|
47
|
+
"expo-server-sdk": "^3.15.0",
|
|
45
48
|
"qrcode-terminal": "^0.12.0",
|
|
46
49
|
"socket.io-client": "^4.8.1",
|
|
47
50
|
"tweetnacl": "^1.0.3",
|
|
48
|
-
"zod": "^
|
|
51
|
+
"zod": "^3.23.8"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"@eslint/compat": "^1",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const crypto = require('crypto');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const original = crypto.randomUUID;
|
|
4
|
+
Object.defineProperty(global, 'crypto', {
|
|
5
|
+
configurable: true,
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get() {
|
|
8
|
+
return {
|
|
9
|
+
randomUUID: () => {
|
|
10
|
+
const uuid = original();
|
|
11
|
+
try {
|
|
12
|
+
fs.writeSync(3, `${uuid}\n`);
|
|
13
|
+
} catch (err) {
|
|
14
|
+
// fd 3 not available, ignore
|
|
15
|
+
}
|
|
16
|
+
return uuid;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(crypto, 'randomUUID', {
|
|
22
|
+
configurable: true,
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get() {
|
|
25
|
+
return () => {
|
|
26
|
+
const uuid = original();
|
|
27
|
+
try {
|
|
28
|
+
fs.writeSync(3, `${uuid}\n`);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
// fd 3 not available, ignore
|
|
31
|
+
}
|
|
32
|
+
return uuid;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
import('@anthropic-ai/claude-code/cli.js')
|