Skip to content

chore: clean up and modernize repo after example migration - #51

Merged
richardsolomou merged 7 commits into
mainfrom
chore/post-migration-cleanup
Mar 20, 2026
Merged

chore: clean up and modernize repo after example migration#51
richardsolomou merged 7 commits into
mainfrom
chore/post-migration-cleanup

Conversation

@richardsolomou

@richardsolomou richardsolomou commented Mar 20, 2026

Copy link
Copy Markdown
Member

Problem

After migrating provider examples to posthog-python and posthog-js (#50), the repo had stale references to the deleted CLI/providers, an unnecessarily nested structure (python/, node/ subdirectories), and used pip/venv for dependency management.

Changes

Remove dead code

  • Old CLI entry pointspython/main.py, node/src/index.ts (already deleted in chore: remove provider examples ported to SDK repos #50), and their run.sh launchers
  • node/ directory — removed entirely (config files for code that no longer exists)
  • prepare.sh — localhost API key sync script, nothing sourced it anymore
  • test-audio.mp3 — test fixture for deleted transcription provider
  • Stale version-pinning env vars from .env.example

Flatten and modernize

  • Flatten python/ to rootscripts/, trace-generator/, screenshot-demo/ now live at the top level
  • pyproject.toml + uv replaces requirements.txt + pip/venv
  • package.json + pnpm at root for Node test scripts (Vercel AI OTel, Anthropic)
  • make setup runs both uv sync and pnpm install
  • Fixed all dotenv paths (../../.env../.env) after flattening

Update docs

  • README.md — rewritten for current repo structure and tooling
  • CLAUDE.md — rewritten to match current architecture
  • .env.example — cleaned up
  • scripts/OTEL_TESTING_REFERENCE.md — updated commands to use uv run

Remove references to the deleted CLI, providers, and test modes.
Update README, CLAUDE.md, run.sh scripts, package.json, and
tsconfig.json to reflect the current state of the repo: internal
tooling only (demo data, trace generator, test scripts, example runner).
- Move scripts/, trace-generator/, screenshot-demo/ to root
- Replace requirements.txt with pyproject.toml
- Replace venv/pip setup with uv (run.sh scripts, Makefile)
- Remove old python/run.sh (100+ line venv setup)
- Clean up .gitignore (remove node-specific entries)
@richardsolomou richardsolomou changed the title chore: clean up repo after migrating examples to SDK repos chore: clean up and modernize repo after example migration Mar 20, 2026
- Add root package.json with deps for Node test scripts (Vercel AI, OTel)
- Restore test_vercel_ai_otel.ts and test_vercel_anthropic.ts into scripts/
- Fix dotenv paths in all scripts (../../.env → ../.env) after flattening
- Update Makefile setup target to run both uv sync and pnpm install
- Update README and CLAUDE.md to document Node scripts
- Remove stale version-pinning vars from .env.example
@richardsolomou
richardsolomou requested a review from a team March 20, 2026 13:28
@richardsolomou
richardsolomou merged commit 1b761e1 into main Mar 20, 2026
10 checks passed
@richardsolomou
richardsolomou deleted the chore/post-migration-cleanup branch March 20, 2026 13:36
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