clawon 0.1.6 → 0.1.7
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 +16 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,6 +132,22 @@ Each archive contains:
|
|
|
132
132
|
|
|
133
133
|
Config is stored at `~/.clawon/config.json` after running `clawon login`. Contains your API key, profile ID, and API URL. Run `clawon logout` to remove it.
|
|
134
134
|
|
|
135
|
+
## Telemetry
|
|
136
|
+
|
|
137
|
+
Clawon collects anonymous usage events (e.g. "backup created", "restore completed") to understand which features are used. No file contents, filenames, or personal data are sent.
|
|
138
|
+
|
|
139
|
+
**To opt out**, set either environment variable:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Standard convention (https://consoledonottrack.com)
|
|
143
|
+
export DO_NOT_TRACK=1
|
|
144
|
+
|
|
145
|
+
# Or Clawon-specific
|
|
146
|
+
export CLAWON_NO_TELEMETRY=1
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Telemetry is powered by [PostHog](https://posthog.com). The public project key is visible in the source code.
|
|
150
|
+
|
|
135
151
|
## Requirements
|
|
136
152
|
|
|
137
153
|
- Node.js 18+
|
package/dist/index.js
CHANGED
|
@@ -136,7 +136,11 @@ async function extractLocalArchive(archivePath, targetDir) {
|
|
|
136
136
|
return meta;
|
|
137
137
|
}
|
|
138
138
|
var POSTHOG_KEY = "phc_LGJC4ZrED6EiK0sC1fusErOhR6gHlFCS5Qs7ou93SmV";
|
|
139
|
+
function telemetryDisabled() {
|
|
140
|
+
return process.env.DO_NOT_TRACK === "1" || process.env.CLAWON_NO_TELEMETRY === "1";
|
|
141
|
+
}
|
|
139
142
|
function trackCliEvent(distinctId, event, properties = {}) {
|
|
143
|
+
if (telemetryDisabled()) return;
|
|
140
144
|
fetch("https://us.i.posthog.com/capture/", {
|
|
141
145
|
method: "POST",
|
|
142
146
|
headers: { "content-type": "application/json" },
|