Skip to content

feat(cli): add --private flag for login-gated share links #23

@btwshivam

Description

@btwshivam

docs/open_source_cli_playbook.md line 164 lists this as a launch feature:

Optional --private flag for login-gated links

grep -rn '"private"\|--private' cmd internal pkg returns nothing. flag never registered, no backing logic, README doesn't mention it.

scope: register the flag on analyze next to --share. when both are set, send X-Optiqor-Private: 1 on the upload POST so the sandbox receiver returns a token-gated optiqor.dev/r/<hash>?k=<token> URL. the receiver side is backend Phase 2 work. the CLI side is just the flag, the header, and a short note in the share-URL print.

honors offlineMode(). no upload under --offline, no token printed. fails closed when --private is set without --share (either error or warn-and-continue, pick one).

Metadata

Metadata

Assignees

Labels

area/cliCobra CLI commands and UXarea/shareShare-link feature (internal/share)claimedSomeone has claimed this via /assignenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions