Pr Sweep Config
@maphew/pr-sweep-configv2026.10.23.1
01README
File-backed configuration store for PR sweep repository pairs (upstream + fork), with enabled/disabled flags, a markdown summary, and methods to add, remove, toggle, and update pairs. The companion to the @maphew/pr-sweep workflow.
02Release Notes
Store an optional per-pair model (provider/model form) through addRepoPair and updateRepoPair, and show it in the markdown summary table; empty keeps the agent default.
03Behaviors
@maphew/pr-sweep-configv2026.10.23.1src/pr_sweep_config.ts
fn discover()
Load the current PR sweep configuration
fn addRepoPair(name: string, upstreamRepo: string, forkRepo: string, workdir: string, agent?: enum, model?: string, mainBranch?: string, swampRepoDir?: string, enabled?: boolean)
Add a new repository pair to the sweep configuration
| Argument | Type | Description |
|---|---|---|
| name | string | Display name for this repo pair |
| upstreamRepo | string | Upstream GitHub repo as owner/name |
| forkRepo | string | Fork GitHub repo as owner/name |
| workdir | string | Local checkout directory for the upstream repo |
| agent? | enum | Headless agent |
| model? | string | Model in provider/model form; empty uses the agent's default |
| mainBranch? | string | Base branch |
| swampRepoDir? | string | Swamp repo path; defaults to the repo swamp runs from |
| enabled? | boolean | Whether to include in sweeps |
fn removeRepoPair(id: string)
Remove a repository pair from the sweep configuration
| Argument | Type | Description |
|---|---|---|
| id | string | ID of the repo pair to remove |
fn toggleRepoPair(id: string)
Toggle enabled/disabled state of a repository pair
| Argument | Type | Description |
|---|---|---|
| id | string | ID of the repo pair to toggle |
fn updateRepoPair(id: string, name?: string, upstreamRepo?: string, forkRepo?: string, workdir?: string, agent?: enum, model?: string, mainBranch?: string, swampRepoDir?: string)
Update a repository pair's settings
| Argument | Type | Description |
|---|---|---|
| id | string | ID of the repo pair to update |
| name? | string | |
| upstreamRepo? | string | |
| forkRepo? | string | |
| workdir? | string | |
| agent? | enum | |
| model? | string | Model in provider/model form; empty uses the agent's default |
| mainBranch? | string | |
| swampRepoDir? | string |
Resources
config(365d)— PR sweep repository pair configuration
Files
summary(text/markdown)— Markdown summary of the PR sweep configuration
04Previous Versions
2026.10.15.2MIT(was AGPL-3.0-only)
Relicense from AGPL-3.0-only to MIT.
2026.10.15.1AGPL-3.0-only(was none)
Declare license: AGPL-3.0-only in the manifest; no model, workflow, or schema changes.
2026.10.14.1
updated labels
2026.09.29.2
2026.09.29.1
05Stats
A
100 / 100
Downloads
39
Archive size
5.5 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
06Platforms
07Labels