Skip to main content

Pr Sweep Config

@maphew/pr-sweep-configv2026.10.23.1· MIT· 28d agoBEHAVIORS
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.

03Behaviors1
@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
ArgumentTypeDescription
namestringDisplay name for this repo pair
upstreamRepostringUpstream GitHub repo as owner/name
forkRepostringFork GitHub repo as owner/name
workdirstringLocal checkout directory for the upstream repo
agent?enumHeadless agent
model?stringModel in provider/model form; empty uses the agent's default
mainBranch?stringBase branch
swampRepoDir?stringSwamp repo path; defaults to the repo swamp runs from
enabled?booleanWhether to include in sweeps
fn removeRepoPair(id: string)
Remove a repository pair from the sweep configuration
ArgumentTypeDescription
idstringID of the repo pair to remove
fn toggleRepoPair(id: string)
Toggle enabled/disabled state of a repository pair
ArgumentTypeDescription
idstringID 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
ArgumentTypeDescription
idstringID of the repo pair to update
name?string
upstreamRepo?string
forkRepo?string
workdir?string
agent?enum
model?stringModel 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 Versions5
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