@staff0rd/assist 0.951.1 → 0.952.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -584,7 +584,7 @@ A restart kills every managed session's pty, which also kills any background tas
|
|
|
584
584
|
|
|
585
585
|
The extension also adds an **assist** button beside each PR review comment, review and issue comment timestamp, and to the PR/issue header. Pressing it opens a popover with an optional instructions field and **Prompt**, **Draft** and **Bug** buttons; **Enter** sends as Prompt (even when empty), **Shift+Enter** adds a newline and **Escape** closes. The background script POSTs the link and instructions to the assist web server's `POST /api/sessions/from-github` (`{ url, instructions?, mode? }`), which parses `owner/repo` from the GitHub URL, finds its clone under `clone.baseDir` (`<baseDir>/<repo>`, else any folder directly under `baseDir` whose origin matches) and starts a Claude session there whose prompt is the link followed by the instructions, answering `{ sessionId, cwd }`. `mode: "draft"` or `"bug"` instead runs `assist draft --once` / `assist bug --once` with that text; any other mode gets a 400. `extension.redirects` maps an `owner/repo` to another `owner/repo` whose clone hosts these sessions instead (e.g. issues tracked in one repo but worked on in another); the prompt keeps the original link, and PR review sends always open the PR's own repo. A toast reports the result: a URL that isn't a GitHub repo link gets a 400, a repo that isn't cloned gets a 404 saying so (nothing is cloned), and an unreachable server names the URL the extension tried. The endpoint has no auth and answers CORS only for `moz-extension://` and `chrome-extension://` origins.
|
|
586
586
|
|
|
587
|
-
On `mail.google.com` the content script adds the **assist** button
|
|
587
|
+
On `mail.google.com` the content script adds the **assist** button beside the date of each expanded message in a thread. It fetches that message's **Show original** view to read its RFC 822 `Message-ID` and sends the permalink `https://mail.google.com/mail/u/0/#search/rfc822msgid%3A<url-encoded Message-ID>`; the agent reads the email through the Gmail connector. An email has no repo, so the popover adds a picker listing the folders under `clone.baseDir` (from `GET /api/clones`), defaulting to the last repo picked (kept in extension storage, ignored once that folder is gone). The send POSTs `{ url, repo, instructions?, mode? }` to `POST /api/sessions/from-link`, which starts the same Prompt/Draft/Bug session in `<baseDir>/<repo>`. Sending with no repo picked, or from a message whose `Message-ID` can't be resolved, toasts the problem and starts nothing; a repo no longer under `baseDir` gets a 404.
|
|
588
588
|
|
|
589
589
|
On a PR page the header button opens a menu mirroring the web app's PR dialog instead: the review modes (Review, Review & refine, Review & apply, Review & post, High-level review), the Force re-run / Address comments after / Announce to Slack after toggles that add their flags to the picked mode, and the PR actions (Checkout, Address Comments, Fix conflicts merge/rebase). Arrow keys move, Enter picks or toggles, Escape or a click outside closes. Picking an entry POSTs `{ url, args }` to `POST /api/sessions/review-from-github`, which resolves the clone the same way and starts an assist session running those args plus the PR number. Args that aren't a shared review mode (optionally followed by toggle flags) or PR action get a 400.
|
|
590
590
|
|