docs: connect-repo reaches what the caller can, and may authorize the terminal

FE
2mo ago
+1-1

Companion to insta-cli#207, required by that repo's CONTRIBUTING (the agent command reference is how coding agents learn the CLI surface).

compute connect-repo's entry described the old contract: "reachable through the org's GitHub App installation". Since insta-platform#412/#416 the listing answers from the caller's own GitHub identity, so a repo the org's installation covers but this person cannot access is refused — and insta-cli#207 makes the first connect from an unauthorized terminal print a GitHub URL and a code.

The entry now says all three things an agent needs: whose access decides, that a terminal may be asked to authorize once (on stderr, ≤10 min), and when it does not wait — --json, or no TTY and no agent session, where it fails naming the alternatives instead of stalling.


Summary by cubic

Updates the compute connect-repo documentation to match caller-scoped GitHub access and the new terminal authorization flow, now version-marked by the release that carries it.

  • On CLI ≥ 0.0.68, a terminal that has never authorized prints a GitHub URL and code to stderr, with a 10-minute confirmation window.
  • --json, or a session without a TTY and agent session, fails naming the terminal, console, and --public alternatives; before 0.0.68 there is no terminal authorization, so an unlinked caller must connect once from the console.
  • Organizations without the App installation must start setup from the console.