@kmmao/happy-agent 0.2.2 → 0.2.3
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 +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ Exit code 0 when agent becomes idle, 1 on timeout.
|
|
|
119
119
|
|
|
120
120
|
## Environment Variables
|
|
121
121
|
|
|
122
|
-
- `HAPPY_SERVER_URL` - API server URL (default: `https://
|
|
122
|
+
- `HAPPY_SERVER_URL` - API server URL (default: `https://happyserve.xycloud.info`)
|
|
123
123
|
- `HAPPY_HOME_DIR` - Home directory for credential storage (default: `~/.happy`)
|
|
124
124
|
|
|
125
125
|
## Session ID Matching
|
package/dist/index.cjs
CHANGED
|
@@ -11,10 +11,10 @@ var qrcode = require('qrcode-terminal');
|
|
|
11
11
|
var node_events = require('node:events');
|
|
12
12
|
var socket_ioClient = require('socket.io-client');
|
|
13
13
|
|
|
14
|
-
var version = "0.2.
|
|
14
|
+
var version = "0.2.3";
|
|
15
15
|
|
|
16
16
|
function loadConfig() {
|
|
17
|
-
const serverUrl = (process.env.HAPPY_SERVER_URL ?? "https://
|
|
17
|
+
const serverUrl = (process.env.HAPPY_SERVER_URL ?? "https://happyserve.xycloud.info").replace(/\/+$/, "");
|
|
18
18
|
const homeDir = process.env.HAPPY_HOME_DIR ?? node_path.join(node_os.homedir(), ".happy");
|
|
19
19
|
const credentialPath = node_path.join(homeDir, "agent.key");
|
|
20
20
|
return { serverUrl, homeDir, credentialPath };
|
package/dist/index.mjs
CHANGED
|
@@ -9,10 +9,10 @@ import qrcode from 'qrcode-terminal';
|
|
|
9
9
|
import { EventEmitter } from 'node:events';
|
|
10
10
|
import { io } from 'socket.io-client';
|
|
11
11
|
|
|
12
|
-
var version = "0.2.
|
|
12
|
+
var version = "0.2.3";
|
|
13
13
|
|
|
14
14
|
function loadConfig() {
|
|
15
|
-
const serverUrl = (process.env.HAPPY_SERVER_URL ?? "https://
|
|
15
|
+
const serverUrl = (process.env.HAPPY_SERVER_URL ?? "https://happyserve.xycloud.info").replace(/\/+$/, "");
|
|
16
16
|
const homeDir = process.env.HAPPY_HOME_DIR ?? join(homedir(), ".happy");
|
|
17
17
|
const credentialPath = join(homeDir, "agent.key");
|
|
18
18
|
return { serverUrl, homeDir, credentialPath };
|