Create a hackbot CLI tool that can interact with Hackbot
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 10/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- api, authentication, cli, security
Rechercherichtung
This spans three parts: token verification in hackbot-api, the client in libs/hackbot-client, and a new CLI. Start by reading how hackbot-api currently accepts allow-listed service accounts and how libs/hackbot-client authenticates, then settle the two open questions (action permissions and whether to create libs/hackbot-cli). Done means the design is agreed and the work is split into smaller issues, one per part.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Add a hackbot command-line tool, built on libs/hackbot-client, that lets Mozilla staff trigger and manage Hackbot runs from the terminal. Users sign in through their browser with their @mozilla.com Google account.
Scope
- hackbot-api: accept individual Google ID tokens alongside the allow-listed service accounts:
- Use a dedicated Desktop OAuth client ID as the token audience.
- Require a verified email and hd == "mozilla.com".
- Attribute user-initiated runs to the token's email (requested_by) and reject a mismatched X-On-Behalf-Of, so users can't create runs in someone else's name.
- hackbot-client:
- Add support for user credentials.
- Add the missing methods: list_agents, list_runs, get_run, list_actions, get_artifact_url.
- CLI:
- login / logout / whoami: browser OAuth flow with a cached refresh token, plus a fallback for headless machines.
- agents
- run (with --wait)
- runs (--mine, --agent, --status)
- show / watch
- actions / apply
- artifact
Open questions
- Should users be able to apply actions on any run (as they can in the UI today), or only on runs they requested?
- Should the CLI live in its own package (libs/hackbot-cli) so the services that use hackbot-client don't pull in its dependencies?
With this, we could also create a plugin so that local CLI agents can trigger hackbot.
- Vorherrschende Sprache
- Python
- Sterne
- 579
- Forks
- 369
- Ø Merge
- 3 T. 5 Std.
- Gemergte PRs (30 T.)
- 139
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mozilla/bugbug
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Replace the direct useag of `recorder.record()` in agent with the tool usageEvtl. vergeben @SanyaKor hat das vor 11 Tagen übernommen. Offenhackbot
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 3 Tagen
-
hackbot
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
Maintainer antworten meist innerhalb von 3 Tagen
-
hackbot
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Fix ASYNC109 Ruff violationsEvtl. vergeben @reginaldalfret hat das vor 44 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
mozilla/bugbug#6987 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
samuelclay/NewsBlur#2214 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
MODEL_NOT_FOUND gives no suggestion for a model listed only as model:profileEvtl. vergeben @ShaiShmuel hat das heute übernommen. Offenenhancement rust
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
superlinked/sie#985 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
readthedocs/readthedocs-builder#73 ·
Maintainer antworten meist innerhalb von 1 Tag