hive-forge: infer active repo from cwd's git remote, demote HIVE_FORGE_REPO

This commit is contained in:
damocles 2026-07-29 18:37:37 +02:00
commit f034ffb9d8
9 changed files with 201 additions and 25 deletions

View file

@ -1,8 +1,9 @@
//! `clone [<dest>] [--branch <b>] [--depth <n>]` — clone a forge repo
//! with credentials auto-injected, so agents don't hand-assemble
//! token-bearing URLs. The repo is the standard `-r/--repo` (default
//! `HIVE_FORGE_REPO`). Pairs with `pr-create --agit`: clone, edit +
//! commit normally, then open a PR via the `AGit` ref.
//! token-bearing URLs. The repo is the standard `-r/--repo` (see
//! `client::Client::from_env` for the full resolution chain). Pairs
//! with `pr-create --agit`: clone, edit + commit normally, then open a
//! PR via the `AGit` ref.
use std::process::Command;

View file

@ -1,6 +1,7 @@
//! `repo-add-collaborator <user> [--permission read|write|admin] [-r <repo>]`
//! — add `<user>` as a collaborator on the active repo (from `-r` /
//! `HIVE_FORGE_REPO`). Prints a one-line confirmation.
//! — add `<user>` as a collaborator on the active repo (see
//! `client::Client::from_env` for how it resolves). Prints a one-line
//! confirmation.
//!
//! Wraps `PUT /api/v1/repos/{owner}/{repo}/collaborators/{collaborator}`.
//! A fresh agent-namespace repo (see `repo-create`) usually needs peers