happy-coder 0.7.1-beta.3 → 0.7.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.
- package/README.md +4 -1
- package/bin/happy.mjs +35 -2
- package/dist/index.cjs +499 -432
- package/dist/index.mjs +508 -441
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +3 -2
- package/dist/lib.d.mts +3 -2
- package/dist/lib.mjs +1 -1
- package/dist/{types-BZC9-exR.mjs → types-CJU8o8xd.mjs} +3 -1
- package/dist/{types-CzvFvJwf.cjs → types-D8nxJTr8.cjs} +3 -1
- package/package.json +5 -4
- package/bin/happy.cmd +0 -3
package/dist/lib.cjs
CHANGED
package/dist/lib.d.cts
CHANGED
|
@@ -700,10 +700,10 @@ declare class ApiClient {
|
|
|
700
700
|
* Register or update machine with the server
|
|
701
701
|
* Returns the current machine state from the server with decrypted metadata and daemonState
|
|
702
702
|
*/
|
|
703
|
-
|
|
703
|
+
createMachineOrGetExistingAsIs(opts: {
|
|
704
704
|
machineId: string;
|
|
705
705
|
metadata: MachineMetadata;
|
|
706
|
-
daemonState
|
|
706
|
+
daemonState?: DaemonState;
|
|
707
707
|
}): Promise<Machine>;
|
|
708
708
|
sessionSyncClient(session: Session): ApiSessionClient;
|
|
709
709
|
machineSyncClient(machine: Machine): ApiMachineClient;
|
|
@@ -746,6 +746,7 @@ declare class Configuration {
|
|
|
746
746
|
readonly settingsFile: string;
|
|
747
747
|
readonly privateKeyFile: string;
|
|
748
748
|
readonly daemonStateFile: string;
|
|
749
|
+
readonly isExperimentalEnabled: boolean;
|
|
749
750
|
constructor();
|
|
750
751
|
}
|
|
751
752
|
declare const configuration: Configuration;
|
package/dist/lib.d.mts
CHANGED
|
@@ -700,10 +700,10 @@ declare class ApiClient {
|
|
|
700
700
|
* Register or update machine with the server
|
|
701
701
|
* Returns the current machine state from the server with decrypted metadata and daemonState
|
|
702
702
|
*/
|
|
703
|
-
|
|
703
|
+
createMachineOrGetExistingAsIs(opts: {
|
|
704
704
|
machineId: string;
|
|
705
705
|
metadata: MachineMetadata;
|
|
706
|
-
daemonState
|
|
706
|
+
daemonState?: DaemonState;
|
|
707
707
|
}): Promise<Machine>;
|
|
708
708
|
sessionSyncClient(session: Session): ApiSessionClient;
|
|
709
709
|
machineSyncClient(machine: Machine): ApiMachineClient;
|
|
@@ -746,6 +746,7 @@ declare class Configuration {
|
|
|
746
746
|
readonly settingsFile: string;
|
|
747
747
|
readonly privateKeyFile: string;
|
|
748
748
|
readonly daemonStateFile: string;
|
|
749
|
+
readonly isExperimentalEnabled: boolean;
|
|
749
750
|
constructor();
|
|
750
751
|
}
|
|
751
752
|
declare const configuration: Configuration;
|
package/dist/lib.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-CJU8o8xd.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'fs';
|
|
@@ -22,6 +22,7 @@ class Configuration {
|
|
|
22
22
|
settingsFile;
|
|
23
23
|
privateKeyFile;
|
|
24
24
|
daemonStateFile;
|
|
25
|
+
isExperimentalEnabled;
|
|
25
26
|
constructor() {
|
|
26
27
|
this.serverUrl = process.env.HAPPY_SERVER_URL || "https://handy-api.korshakov.org";
|
|
27
28
|
const args = process.argv.slice(2);
|
|
@@ -37,6 +38,7 @@ class Configuration {
|
|
|
37
38
|
this.settingsFile = join(this.happyHomeDir, "settings.json");
|
|
38
39
|
this.privateKeyFile = join(this.happyHomeDir, "access.key");
|
|
39
40
|
this.daemonStateFile = join(this.happyHomeDir, "daemon.state.json");
|
|
41
|
+
this.isExperimentalEnabled = ["true", "1", "yes"].includes(process.env.HAPPY_EXPERIMENTAL?.toLowerCase() || "");
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
const configuration = new Configuration();
|
|
@@ -1225,7 +1227,7 @@ class ApiClient {
|
|
|
1225
1227
|
* Register or update machine with the server
|
|
1226
1228
|
* Returns the current machine state from the server with decrypted metadata and daemonState
|
|
1227
1229
|
*/
|
|
1228
|
-
async
|
|
1230
|
+
async createMachineOrGetExistingAsIs(opts) {
|
|
1229
1231
|
const response = await axios.post(
|
|
1230
1232
|
`${configuration.serverUrl}/v1/machines`,
|
|
1231
1233
|
{
|
|
@@ -24,6 +24,7 @@ class Configuration {
|
|
|
24
24
|
settingsFile;
|
|
25
25
|
privateKeyFile;
|
|
26
26
|
daemonStateFile;
|
|
27
|
+
isExperimentalEnabled;
|
|
27
28
|
constructor() {
|
|
28
29
|
this.serverUrl = process.env.HAPPY_SERVER_URL || "https://handy-api.korshakov.org";
|
|
29
30
|
const args = process.argv.slice(2);
|
|
@@ -39,6 +40,7 @@ class Configuration {
|
|
|
39
40
|
this.settingsFile = node_path.join(this.happyHomeDir, "settings.json");
|
|
40
41
|
this.privateKeyFile = node_path.join(this.happyHomeDir, "access.key");
|
|
41
42
|
this.daemonStateFile = node_path.join(this.happyHomeDir, "daemon.state.json");
|
|
43
|
+
this.isExperimentalEnabled = ["true", "1", "yes"].includes(process.env.HAPPY_EXPERIMENTAL?.toLowerCase() || "");
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
const configuration = new Configuration();
|
|
@@ -1227,7 +1229,7 @@ class ApiClient {
|
|
|
1227
1229
|
* Register or update machine with the server
|
|
1228
1230
|
* Returns the current machine state from the server with decrypted metadata and daemonState
|
|
1229
1231
|
*/
|
|
1230
|
-
async
|
|
1232
|
+
async createMachineOrGetExistingAsIs(opts) {
|
|
1231
1233
|
const response = await axios.post(
|
|
1232
1234
|
`${configuration.serverUrl}/v1/machines`,
|
|
1233
1235
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "happy-coder",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Claude Code session sharing CLI",
|
|
5
5
|
"author": "Kirill Dubovitskiy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@eslint/compat": "^1",
|
|
88
|
-
"@types/node": ">=
|
|
88
|
+
"@types/node": ">=20",
|
|
89
89
|
"cross-env": "^10.0.0",
|
|
90
90
|
"eslint": "^9",
|
|
91
91
|
"eslint-config-prettier": "^10",
|
|
@@ -96,7 +96,8 @@
|
|
|
96
96
|
"typescript": "^5",
|
|
97
97
|
"vitest": "^3.2.4"
|
|
98
98
|
},
|
|
99
|
-
"
|
|
99
|
+
"resolutions": {
|
|
100
100
|
"whatwg-url": "14.2.0"
|
|
101
|
-
}
|
|
101
|
+
},
|
|
102
|
+
"packageManager": "yarn@1.22.22"
|
|
102
103
|
}
|
package/bin/happy.cmd
DELETED