CLI: add non-interactive mode and commander framework#14
Closed
Angelmmiguel wants to merge 1 commit intomainfrom
Closed
CLI: add non-interactive mode and commander framework#14Angelmmiguel wants to merge 1 commit intomainfrom
Angelmmiguel wants to merge 1 commit intomainfrom
Conversation
Replace manual process.argv parsing with commander for declarative subcommand/option definitions. Add non-interactive (non-TTY) support across all subcommands with machine-parseable key:value output, flag-driven anonymization (--anonymize/--no-anonymize), and agent:id session specifiers. Co-Authored-By: Rover <noreply@endor.dev>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
capsule | e0f04cf | Commit Preview URL Branch Preview URL |
Feb 23 2026, 11:33 AM |
Contributor
Author
|
Closing this in favor of #13, as the changes are related. |
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
share,export,serve)capsule shareandcapsule exportwith CLI flags (--public,--secret,--anonymize,--format,--description)agent:sessionIdshorthand (e.g.,claude:abc123) in addition to file pathsChanges
packages/cli/src/index.ts— Replaced manualprocess.argvparsing with commander program and subcommand definitionspackages/cli/src/commands/share.ts— Added flag handling for--public/--secret,--anonymize,--format,--description; machine-parseable output in non-TTY modepackages/cli/src/commands/export.ts— Added non-interactive support with--anonymizeand--formatflagspackages/cli/src/commands/serve.ts— Migrated to commander options for--portpackages/cli/src/flows/session.ts— Addedagent:idshorthand resolution, path fallback, format flag supportpackages/cli/src/flows/anonymize-prompt.ts— Accept pre-selected anonymization options, skip prompt when fully specifiedpackages/cli/package.json— Addedcommanderdependencypnpm-lock.yaml— Updated lockfileCloses #12