happy-coder 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "happy-coder",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Claude Code session sharing CLI",
5
5
  "author": "Kirill Dubovitskiy",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
- "homepage": "https://github.com/bra1ndump/handy-cli",
9
- "bugs": "https://github.com/bra1ndump/handy-cli/issues",
10
- "repository": "bra1ndump/handy-cli",
8
+ "homepage": "https://github.com/slopus/happy-cli",
9
+ "bugs": "https://github.com/slopus/happy-cli/issues",
10
+ "repository": "slopus/happy-cli",
11
11
  "bin": {
12
12
  "happy": "./bin/happy"
13
13
  },
@@ -26,7 +26,8 @@
26
26
  },
27
27
  "files": [
28
28
  "dist",
29
- "bin"
29
+ "bin",
30
+ "scripts"
30
31
  ],
31
32
  "scripts": {
32
33
  "test": "vitest run",
@@ -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')