Skip to content

feat(telemetry): add shared defaults and source maps - #71

Merged
richardsolomou merged 5 commits into
mainfrom
refactor/adopt-shared-repo-checks
Sep 20, 2026
Merged

richardsolomou merged 5 commits into
mainfrom
refactor/adopt-shared-repo-checks

Conversation

@richardsolomou

@richardsolomou richardsolomou commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Problem

The PostHog conformance test checked ras-stack's defaults without proving that BaseKit's provider was wired correctly. Geometry import boundaries were not enforced, repository policy duplicated shared configuration, and production browser errors lacked service metadata and readable source maps.

Changes

I upgraded to ras-stack v2, enabled the shared geometry boundary and Changesets policy, and expanded linting to the repository root. The telemetry test now exercises the real application entrypoint with telemetry configured and absent.

BaseKit's PostHog provider now reports a stable service name, package version, and build environment, with browser logs, metrics, and source maps enabled. Cloudflare production builds upload source maps through the PostHog Vite integration when the project credentials are configured; the personal API key remains build-only and is not exposed to the browser bundle.

Risk

Low. Geometry behavior is unchanged. Telemetry falls back to the existing disabled state when configuration is absent, and source-map uploads run only in Cloudflare production builds with explicit credentials.

Verification

  • pnpm check
  • 5 test files and 247 tests passed
  • Formatting, root-wide lint, policy, typecheck, frozen install, and production build passed against published ras-stack@2.0.0
  • The provider wiring test was verified against the real entrypoint
  • CI check, browser E2E, and Cloudflare Workers build passed

Checklist

  • Tests cover new or changed behavior where practical.
  • Geometry changes are checked against a real export, not just the preview. N/A, no geometry changes.
  • User-facing deployment configuration is documented.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 20, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
basekit 7a7d517 Commit Preview URL

Branch Preview URL
Sep 20 2026, 08:19 PM

…hing

ras-stack's Changesets policy now targets private packages, so the local
override goes. Lint covers the repository root as well, which brings the
Vite, Vitest, and Playwright configs under the same rules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@richardsolomou richardsolomou changed the title test(tooling): enforce geometry boundaries and telemetry wiring test(tooling): enforce geometry boundaries and shared repository defaults Sep 20, 2026
Identify BaseKit telemetry consistently and upload production source maps through the PostHog build integration.
…-repo-checks-2

# Conflicts:
#	pnpm-lock.yaml
@richardsolomou richardsolomou changed the title test(tooling): enforce geometry boundaries and shared repository defaults feat(telemetry): add shared defaults and source maps Sep 20, 2026
@richardsolomou
richardsolomou marked this pull request as ready for review September 20, 2026 20:22
@richardsolomou
richardsolomou merged commit 7184c79 into main Sep 20, 2026
4 checks passed
@richardsolomou
richardsolomou deleted the refactor/adopt-shared-repo-checks branch September 20, 2026 20:45
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.

1 participant