docs: update memory tool list, CLI usage, and config file reading logic (#4861)

Co-authored-by: Livia Ellen <liviaellen@msn.com>
This commit is contained in:
Kartik
2026-04-20 20:09:45 +05:30
committed by GitHub
co-authored by Livia Ellen
parent 5520226b5b
commit 4e611e8dba
31 changed files with 1530 additions and 364 deletions
+4 -3
View File
@@ -9,9 +9,9 @@
*/
import { createHash, randomUUID } from "node:crypto";
import { readPluginAuth, writePluginAuth, getBaseUrl } from "./cli/config-file.ts";
import { readPluginAuth, writePluginAuth, getBaseUrl, clearAnonymousTelemetryId } from "./cli/config-file.ts";
export const PLUGIN_VERSION = "1.0.6";
export const PLUGIN_VERSION = "1.0.7";
const POSTHOG_API_KEY = "phc_hgJkUVJFYtmaJqrvf6CYN67TIQ8yhXAkWzUn9AMU4yX";
const POSTHOG_HOST = "https://us.i.posthog.com/i/v0/e/";
@@ -84,8 +84,9 @@ function maybeBuildIdentifyEvent(
$lib: "posthog-node",
},
};
// Clear the anonymous ID from config after aliasing (don't write empty string)
try {
writePluginAuth({ anonymousTelemetryId: "" });
clearAnonymousTelemetryId();
} catch {
/* ignore — alias may double-fire next session, harmless */
}