- apps/cli/ is now the canonical CLI (was apps/cli-v2/). - apps/cli/ legacy v0 archived as branch 'legacy-cli-archive' and tag 'cli-v0-legacy-final' before deletion; git history preserves it too. - .github/workflows/release-cli.yml paths updated. - pnpm-lock.yaml regenerated. Broker-side peer-grant enforcement (spec: 2026-04-15-per-peer-capabilities): - 0020_peer-grants.sql adds peer_grants jsonb + GIN index on mesh.member. - handleSend in broker fetches recipient grant maps once per send, drops messages silently when sender lacks the required capability. - POST /cli/mesh/:slug/grants to update from CLI; broker_messages_dropped_by_grant_total metric. - CLI grant/revoke/block now mirror to broker via syncToBroker. Auto-migrate on broker startup: - apps/broker/src/migrate.ts runs drizzle migrate with pg_advisory_lock before the HTTP server binds. Exits non-zero on failure so Coolify healthcheck fails closed. - Dockerfile copies packages/db/migrations into /app/migrations. - postgres 3.4.5 added as direct broker dep. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
1.6 KiB
Markdown
38 lines
1.6 KiB
Markdown
---
|
|
title: PostHog Setup - Conclusion
|
|
description: Review and fix any errors in the PostHog integration implementation
|
|
---
|
|
|
|
Use the PostHog MCP to create a new dashboard named "Analytics basics" based on the events created here. Make sure to use the exact same event names as implemented in the code. Populate it with up to five insights, with special emphasis on things like conversion funnels, churn events, and other business critical insights.
|
|
|
|
Search for a file called `.posthog-events.json` and read it for available events. Do not spawn subagents.
|
|
|
|
Create the file posthog-setup-report.md. It should include a summary of the integration edits, a table with the event names, event descriptions, and files where events were added, along with a list of links for the dashboard and insights created. Follow this format:
|
|
|
|
<wizard-report>
|
|
# PostHog post-wizard report
|
|
|
|
The wizard has completed a deep integration of your project. [Detailed summary of changes]
|
|
|
|
[table of events/descriptions/files]
|
|
|
|
## Next steps
|
|
|
|
We've built some insights and a dashboard for you to keep an eye on user behavior, based on the events we just instrumented:
|
|
|
|
[links]
|
|
|
|
### Agent skill
|
|
|
|
We've left an agent skill folder in your project. You can use this context for further agent development when using Claude Code. This will help ensure the model provides the most up-to-date approaches for integrating PostHog.
|
|
|
|
</wizard-report>
|
|
|
|
Upon completion, remove .posthog-events.json.
|
|
|
|
## Status
|
|
|
|
Status to report in this phase:
|
|
|
|
- Configured dashboard: [insert PostHog dashboard URL]
|
|
- Created setup report: [insert full local file path] |