hedgequantx 2.7.33 → 2.7.34
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
|
@@ -21,7 +21,8 @@ const INSTALL_DIR = path.join(os.homedir(), '.hqx', 'cliproxy');
|
|
|
21
21
|
const BINARY_NAME = process.platform === 'win32' ? 'cli-proxy-api.exe' : 'cli-proxy-api';
|
|
22
22
|
const BINARY_PATH = path.join(INSTALL_DIR, BINARY_NAME);
|
|
23
23
|
const PID_FILE = path.join(INSTALL_DIR, 'cliproxy.pid');
|
|
24
|
-
|
|
24
|
+
// Use default CLIProxyAPI auth directory (where -claude-login saves tokens)
|
|
25
|
+
const AUTH_DIR = path.join(os.homedir(), '.cli-proxy-api');
|
|
25
26
|
|
|
26
27
|
// Default port
|
|
27
28
|
const DEFAULT_PORT = 8317;
|
|
@@ -210,11 +211,10 @@ const isRunning = async () => {
|
|
|
210
211
|
const CONFIG_PATH = path.join(INSTALL_DIR, 'config.yaml');
|
|
211
212
|
|
|
212
213
|
/**
|
|
213
|
-
* Create config file
|
|
214
|
+
* Create or update config file
|
|
214
215
|
*/
|
|
215
216
|
const ensureConfig = () => {
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
// Always write config to ensure auth-dir is correct
|
|
218
218
|
const config = `# HQX CLIProxyAPI Config
|
|
219
219
|
host: "127.0.0.1"
|
|
220
220
|
port: ${DEFAULT_PORT}
|