@staff0rd/assist 0.346.0 → 0.347.0

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
@@ -93,6 +93,7 @@ After installation, the `assist` command will be available globally. You can als
93
93
  - `assist commit status` - Show git status and diff
94
94
  - `assist commit <message>` - Commit staged changes with validation
95
95
  - `assist commit <message> [files...]` - Stage files and create a git commit with validation
96
+ - `assist branch <slug> [--jira <key>]` - Create and switch to a new branch off the fresh remote default branch. Assembles the name as `[<prefix>/][<JIRA>-]<slug>` (prefix from the optional `branch.prefix` config, Jira key used verbatim), fetches and branches from `origin/<default>` (resolved dynamically, not hardcoded to main), and rejects slugs whose numeric tokens look like backlog IDs
96
97
  - `assist prs` - List pull requests for the current repository
97
98
  - `assist prs raise --title <title> --what <what> --why <why> [--how <how>] [--resolves <key>] [--force]` - Raise a pull request, assembling the body from `## What`, `## Why` (with `--resolves` Jira URLs appended inline), and an optional `## How`; errors if a PR already exists unless `--force` overwrites its title and body
98
99
  - `assist prs edit [--title <title>] [--what <what>] [--why <why>] [--how <how>] [--resolves <key>]` - Update only the supplied sections of the current branch's pull request, preserving every other section of its body
@@ -295,6 +296,8 @@ When `commit.pull` is enabled in config, `assist draft`, `assist bug`, `assist r
295
296
 
296
297
  When `commit.expectedBranch` is set (e.g. `main`), `assist commit` prints a prominent warning if HEAD is on any other branch before committing — so work committed (and pushed) on a stray branch in a repo that lands directly on the expected branch isn't silently orphaned. The warning is non-blocking: the commit still proceeds. With the key unset, behaviour is unchanged and no branch check runs.
297
298
 
299
+ When `branch.prefix` is set (e.g. `sw`), `assist branch <slug>` prepends `<prefix>/` to the branch name. With the key unset, no prefix segment is added.
300
+
298
301
  ## netcap browser extension
299
302
 
300
303
  `assist netcap` only runs the receiver; the browser side is a raw Manifest V3 extension (no build step) under `netcap-extension/`. A MAIN-world content script patches `fetch`/`XMLHttpRequest` to capture `{url, method, status, requestBody, responseBody, timestamp}`, relays each entry to the background service worker (`window.postMessage` → `chrome.runtime.sendMessage`), and the background worker POSTs it to the receiver. The XHR patch reads the response across every `responseType` (`json`, `blob`, `arraybuffer`, `document`, not just `text`) — LinkedIn's voyager GraphQL calls use `responseType: "json"`, which exposes no `responseText`, so reading `responseText` alone captured those bodies empty. Forwarding happens in the background context, so the page's CSP (`connect-src`) never blocks it — the limitation that killed the earlier console-paste approach.
@@ -11,6 +11,7 @@ assist backlog unlink
11
11
  assist backlog update
12
12
  assist backlog update-phase
13
13
  assist backlog start
14
+ assist branch
14
15
  assist commit
15
16
  assist devlog
16
17
  assist handover
@@ -11,6 +11,7 @@ assist backlog unlink
11
11
  assist backlog update
12
12
  assist backlog update-phase
13
13
  assist backlog start
14
+ assist branch
14
15
  assist commit
15
16
  assist devlog
16
17
  assist handover