@ghl-ai/aw 0.1.42-beta.13 → 0.1.42-beta.14
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/ecc.mjs +1 -1
- package/package.json +1 -1
- package/telemetry.mjs +12 -1
package/ecc.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { applyStoredStartupPreferences } from "./startup.mjs";
|
|
|
10
10
|
|
|
11
11
|
const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
|
|
12
12
|
const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
|
|
13
|
-
export const AW_ECC_TAG = "v1.4.38-beta.
|
|
13
|
+
export const AW_ECC_TAG = "v1.4.38-beta.14";
|
|
14
14
|
|
|
15
15
|
const MARKETPLACE_NAME = "aw-marketplace";
|
|
16
16
|
const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
|
package/package.json
CHANGED
package/telemetry.mjs
CHANGED
|
@@ -30,7 +30,13 @@ export function generateMachineId() {
|
|
|
30
30
|
export function loadConfig() {
|
|
31
31
|
try {
|
|
32
32
|
if (existsSync(CONFIG_PATH)) {
|
|
33
|
-
|
|
33
|
+
const config = JSON.parse(readFileSync(CONFIG_PATH, 'utf8'));
|
|
34
|
+
// Sync AW_TELEMETRY_URL into config so Cursor GUI can read it (Bug #9).
|
|
35
|
+
if (process.env.AW_TELEMETRY_URL && config.telemetry_url !== process.env.AW_TELEMETRY_URL) {
|
|
36
|
+
config.telemetry_url = process.env.AW_TELEMETRY_URL;
|
|
37
|
+
saveConfig(config);
|
|
38
|
+
}
|
|
39
|
+
return config;
|
|
34
40
|
}
|
|
35
41
|
// One-time migration from legacy single-file shape (~/.aw/.telemetry).
|
|
36
42
|
// Only triggered when new path is missing, so re-running is a no-op.
|
|
@@ -47,6 +53,11 @@ export function loadConfig() {
|
|
|
47
53
|
enabled: true,
|
|
48
54
|
noticed: false,
|
|
49
55
|
};
|
|
56
|
+
// Persist AW_TELEMETRY_URL so Cursor GUI (which doesn't inherit shell env)
|
|
57
|
+
// can resolve the telemetry endpoint from config.json (Bug #9 fix).
|
|
58
|
+
if (process.env.AW_TELEMETRY_URL) {
|
|
59
|
+
config.telemetry_url = process.env.AW_TELEMETRY_URL;
|
|
60
|
+
}
|
|
50
61
|
saveConfig(config);
|
|
51
62
|
return config;
|
|
52
63
|
}
|