Skip to content

feat(cli): add secrets, members, sharing, archiving and agent settings - #270

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/283-look-into-fixing-the-gaps-here-https-git
Oct 25, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/283-look-into-fixing-the-gaps-here-https-git

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The CLI now does what issue #266 lists as web-app-only, each with --json:

  • fctl projects secrets lists a project's secrets, set NAME takes the value from stdin or a prompt that hides it (never an argument), and remove NAME deletes one.
  • fctl projects members lists members, add EMAIL [--role] adds someone in the workspace, role PERSON ROLE changes a role, remove PERSON removes someone (your own address leaves).
  • fctl share SESSION [EMAIL] [--role viewer|editor|owner] shares a session, or lists who it is shared with; fctl unshare SESSION PERSON takes a share back. fctl archive and fctl unarchive put a session away and bring it back, and fctl sessions --archived lists archived ones too.
  • fctl projects set takes --model, --effort, --instructions or --instructions-file, --auto-pull-request, --remote-control and --connectors, and fctl projects show says what each is set to.

The control plane already had all the endpoints, so this changes only the CLI, its client and the docs: docs/cli.md, docs/agents.md, docs/getting-started.md, docs/api.md and docs/llms.txt now point at these commands instead of the web app or the HTTP API. Looking a session up as project#number now finds archived sessions too, so fctl unarchive my-app#12 works. Otherwise the session would only be reachable by its id. One gap the issue didn't list, renaming a project or changing its description or default branch, is now #271.

Verified with unit tests (argument parsing, the text show prints, finding people by address or id, clap's checks of the whole command tree) and end to end against cargo xtask dev with a second person. Secrets reached a session's sandbox exactly as set: piped values lose only their trailing newline, multi-line values arrive whole, and a typed value isn't echoed. Viewer and editor shares let Grace read, then message. Removing a share, leaving a project, and the server's refusals all showed up as expected: "You cannot give this role", "A project needs at least one owner", and only owners archive. cargo xtask check --quick passes.

Worth confirming

  • Decision: the commands' shape, which the issue left to a person: fctl projects secrets … and fctl projects members … sit beside fctl projects repos; fctl share/fctl unshare and fctl archive/fctl unarchive are top-level verbs like fctl follow/fctl unfollow; --auto-pull-request and --connectors follow the setting's and fctl projects create's names.
  • Decision: fctl share and fctl projects members add give the editor role unless --role says otherwise, as the web app's share dialog and Members tab do. An editor can message the agent, and so can have it hand over the sandbox's secrets and tokens; the help and docs say so.
  • Decision: fctl projects secrets set uppercases the name, as the web app's Secrets tab does, and checks it before asking for the value.

Fixes #266

fctl session

What the web app or the HTTP API alone did (#266) now has commands, each
with --json: `fctl projects secrets` (list, set with the value from stdin
or a hidden prompt, remove), `fctl projects members` (list, add, role,
remove), `fctl share`/`fctl unshare`, `fctl archive`/`fctl unarchive` with
`fctl sessions --archived`, and `fctl projects set --model --effort
--instructions[-file] --auto-pull-request --remote-control --connectors`,
which `fctl projects show` reports. Looking a session up as project#number
finds archived ones too. The docs and llms.txt point at the commands
instead of the web app and the API.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner October 24, 2026 23:21
@kalaspuff
kalaspuff merged commit 263e6b2 into main Oct 25, 2026
11 checks passed
@kalaspuff
kalaspuff deleted the fctl/283-look-into-fixing-the-gaps-here-https-git branch October 25, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

The CLI can't set a project's secrets, members or agent settings, nor share or archive sessions

1 participant