1.3 KiB
1.3 KiB
Diagnostics
Gather system info:
node -p "require('./package.json').version"
uname -s
uname -m
node -p "process.versions.node.split('.')[0]"
Write /tmp/nanoclaw-diagnostics.json. No paths, usernames, hostnames, or IP addresses.
{
"api_key": "phc_fx1Hhx9ucz8GuaJC8LVZWO8u03yXZZJJ6ObS4yplnaP",
"event": "setup_complete",
"distinct_id": "<uuid>",
"properties": {
"success": true,
"nanoclaw_version": "1.2.21",
"os_platform": "darwin",
"arch": "arm64",
"node_major_version": 22,
"channels_selected": ["telegram", "whatsapp"],
"error_count": 0,
"failed_step": null
}
}
Show the entire JSON to the user and ask via AskUserQuestion: Yes / No / Never ask again
Yes:
curl -s -X POST https://us.i.posthog.com/capture/ -H 'Content-Type: application/json' -d @/tmp/nanoclaw-diagnostics.json
rm /tmp/nanoclaw-diagnostics.json
No: rm /tmp/nanoclaw-diagnostics.json
Never ask again:
- Replace contents of
.claude/skills/setup/diagnostics.mdwith# Diagnostics — opted out - Replace contents of
.claude/skills/update-nanoclaw/diagnostics.mdwith# Diagnostics — opted out - Remove the "Diagnostics" section from both
.claude/skills/setup/SKILL.mdand.claude/skills/update-nanoclaw/SKILL.md rm /tmp/nanoclaw-diagnostics.json