Skip to content

Add levh remove-demo CLI command - #9

Merged
ali-ulu merged 2 commits into
mainfrom
claude/remove-demo-data-xdwh4x
Jul 28, 2026
Merged

Add levh remove-demo CLI command#9
ali-ulu merged 2 commits into
mainfrom
claude/remove-demo-data-xdwh4x

Conversation

@ali-ulu

@ali-ulu ali-ulu commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Demo data cleanup was only reachable via the POST /api/onboarding/remove-demo HTTP endpoint.
  • Adds a matching levh remove-demo CLI command (mirroring the existing levh seed-demo) so demo data can be stripped from an existing instance without curl.

Test plan

  • python -m server.cli --help shows the new remove-demo subcommand
  • python -m pytest tests/test_demo_data_cleanup.py -q passes

Generated by Claude Code

claude added 2 commits July 28, 2026 20:07
Demo data cleanup was only reachable via the /api/onboarding/remove-demo
HTTP endpoint. Add a matching CLI command mirroring seed-demo so demo
data can be stripped out of an existing instance without curl.
- Guard memory.hscore against undefined (not just null) before .toFixed()
- Fall back to a placeholder when person/org name is empty before .slice()
- Handle non-JSON/empty responses in fetchApi instead of throwing raw SyntaxError
- Add app/error.tsx so uncaught render errors show the real message instead
  of the generic "client-side exception" overlay
@ali-ulu
ali-ulu merged commit 99c1cd3 into main Jul 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants