feat(experimental): gate experimental commands behind OBSERVE_CLI_EXPERIMENTAL#14
Merged
Merged
Conversation
…ERIMENTAL
Add experimental command gating. A command is marked experimental with a single
declarative field — `defineCommand({ experimental: true, ... })` — and a route
group becomes experimental automatically once all of its children are. An
experimental command is hidden from help and refuses to run unless
OBSERVE_CLI_EXPERIMENTAL=1, and carries an [experimental] badge when visible.
SemVer covers only the default surface.
- add src/lib/stricli-wrappers.ts: thin defineCommand/defineRoutes over
stricli's builders that own the custom-field set and dispatch to feature
modules around the build
- add src/lib/experimental.ts: the experimental feature (gate, badge,
execution-blocking, registry, arg/docs transforms); experimental-ness bubbles
up from leaves to groups
- add src/lib/experimental.test.ts: e2e command-tree tests
- define every command and route map via defineCommand/defineRoutes
- mark the content, data-connection, ingest-token, and datasource groups
experimental
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
e4fe963 to
b89c7f5
Compare
colecorrente
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds experimental command gating to the CLI. A command marked experimental is:
OBSERVE_CLI_EXPERIMENTAL=1,[experimental]in help when visible.SemVer covers only the default (non-experimental) surface; opting in carries no stability guarantees.
Marking a command experimental
Commands and route maps are defined with
defineCommand/defineRoutes(thin wrappers over stricli's builders). A command is marked with a single field, and a route group becomes experimental automatically once all of its children are:Promoting to GA = deleting the field. Full guide in
AGENTS.md. Applied here to thecontent,data-connection,ingest-token, anddatasourcegroups.Notes for reviewers
src/lib/experimental.ts;defineCommand/defineRoutesare thin wrappers insrc/lib/stricli-wrappers.ts. Most of the diff is the mechanical swap of every command/route map onto those wrappers.Verification
bun run typecheck,bun run lint,bun run formatclean;bun test256 pass.OBSERVE_CLI_EXPERIMENTAL=1→ visible with the[experimental]badge and runnable.🤖 Generated with Claude Code