Skip to content

SP-1383: gate early-access commands behind feature flag, replace beta#393

Open
A. Jashari (admirjashari) wants to merge 6 commits into
mainfrom
SP-1383-early-access-feature-flag
Open

SP-1383: gate early-access commands behind feature flag, replace beta#393
A. Jashari (admirjashari) wants to merge 6 commits into
mainfrom
SP-1383-early-access-feature-flag

Conversation

@admirjashari

Copy link
Copy Markdown
Contributor

Description

Gate early-access (non-GA) commands behind a backend feature flag. If a team runs a gated command that isn't enabled for them, they get a clear "not enabled — contact support" message instead of a generic 403.

Also consolidates the old beta marker into a single earlyAccess:

  • earlyAccess(featureKey?) replaces beta()/betaOption() — with a key it's gated at run time, without one it's just an internal marker.
  • No (beta) label anymore; early-access status is internal (nothing shown in --help).
  • Check uses the existing /api/team/features endpoint with the profile token (flag enabled = key present).
  • No profile → normal "no profile" error; check failure → fail-closed "could not verify".
  • deployment commands migrated to .earlyAccess() (ungated, behavior unchanged).

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • Docs — N/A, tracked in a separate ticket

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@admirjashari A. Jashari (admirjashari) requested review from a team as code owners July 9, 2026 08:14
A. Jashari (admirjashari) and others added 2 commits July 9, 2026 13:54
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread src/core/command/module-handler.ts Outdated
Comment thread src/core/command/module-handler.ts
A. Jashari (admirjashari) and others added 3 commits July 9, 2026 14:58
Co-authored-by: Thomas Neumüller <t.neumueller@celonis.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@@ -0,0 +1,13 @@
/**
* Backend feature-flag keys for early-access commands.

@kuvia Jing Sun (kuvia) Jul 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you clean up the excessive comments a bit? I'm not sure they're all useful, for example this one

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.

3 participants