@sideboard-ai/cli 0.1.152 → 0.1.155

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -774,12 +774,26 @@ ${preview.diffStat}`);
774
774
  console.log(`${b.current ? "*" : " "} ${b.name}${b.remote ? " (remote)" : ""}`);
775
775
  }
776
776
  });
777
- program.command("prs").option("--repo <path>", "repo path", process.cwd()).action(async (opts) => {
777
+ program.command("prs").option("--repo <path>", "repo path", process.cwd()).option("--state <state>", "open | closed | merged | all | review", "open").option("--queue <queue>", "review | mine | approved | changes").option(
778
+ "--label <name>",
779
+ "GitHub label (repeat or comma-separated). e.g. eng-review",
780
+ (value, previous) => previous.concat(value),
781
+ []
782
+ ).option("--reviewer <who>", "me | unassigned | GitHub login").option("--search <query>", "extra GitHub search tokens").option("--limit <n>", "max rows", "200").action(async (opts) => {
778
783
  const repo = await resolveRepoRoot(opts.repo);
779
- const prs = await listPrs(repo);
784
+ const prs = await listPrs(repo, {
785
+ queue: opts.queue,
786
+ state: opts.state,
787
+ labels: opts.label,
788
+ reviewer: opts.reviewer,
789
+ query: opts.search,
790
+ limit: Number(opts.limit) || 200
791
+ });
780
792
  for (const p of prs) {
793
+ const tags = p.labels?.length ? ` [${p.labels.join(", ")}]` : "";
794
+ const reviewers = p.reviewers?.length ? ` reviewers:${p.reviewers.join(",")}` : "";
781
795
  console.log(
782
- `#${p.number} ${p.title} ${p.headRefName}${p.isCrossRepository ? " [fork]" : ""}`
796
+ `#${p.number} ${p.title} ${p.headRefName}${p.isCrossRepository ? " [fork]" : ""}${tags}${reviewers}`
783
797
  );
784
798
  }
785
799
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/cli",
3
- "version": "0.1.152",
3
+ "version": "0.1.155",
4
4
  "description": "Sideboard CLI — agent-agnostic worktree orchestration (includes `sideboard mcp`)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",