feat(plapi): stamp from_source=cli on authenticated app creation#192
feat(plapi): stamp from_source=cli on authenticated app creation#192
Conversation
🦋 Changeset detectedLatest commit: cf7db71 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds CLI attribution for applications created via the Clerk CLI. Introduces and exports Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
dde1c6b to
9d45706
Compare
20f0f41 to
cf7db71
Compare
Phase 2 of the CLI Tier 1 attribution plan. Phase 1 (clerk_go#18277) makes POST /v1/platform/applications accept an optional from_source field and persist it to applications.from_source. This PR is the CLI counterpart: every authenticated app the CLI creates now stamps from_source: "cli" so those apps are identifiable in BigQuery dim_applications for growth analytics.
Phase 1 PR: https://github.com/clerk/clerk_go/pull/18277
How
Canonical value matches what PR #157 (auto-claim keyless) already sends on its accountless POST body.
Test plan
Rollout
Backwards-compatible. If this ships before Phase 1 deploys, PLAPI silently ignores the unknown field. Once Phase 1 deploys, stamps start appearing in applications.from_source.