next-issue 14.4.4 → 14.4.6

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.
@@ -71,7 +71,8 @@ function scopeValue(value) {
71
71
  }
72
72
  return value;
73
73
  }
74
- function readArgs(argv) {
74
+ function readArgs(passed) {
75
+ const argv = passed[0] === '--help' ? [...passed.slice(1), '--help'] : passed;
75
76
  const args = {
76
77
  help: false,
77
78
  force: false,
@@ -1,5 +1,6 @@
1
1
  import { asError } from './errors.mjs';
2
- import { gh, ghJson, ghOnce, names, repoArg, viewJson } from './gh.mjs';
2
+ import { gh, ghApi, ghOnce, names, repoArg, viewJson } from './gh.mjs';
3
+ import { lines } from './text.mjs';
3
4
  const KNOWN_LABELS = new Map();
4
5
  async function labelsOf(repo, kind, number) {
5
6
  const parsed = await viewJson(repo, kind, number, 'labels');
@@ -50,15 +51,8 @@ async function knownLabels(repo) {
50
51
  if (cached !== undefined) {
51
52
  return cached;
52
53
  }
53
- const listed = await ghJson(repo, [
54
- 'label',
55
- 'list',
56
- '--limit',
57
- '1000',
58
- '--json',
59
- 'name',
60
- ]);
61
- const known = new Set(names(listed).map((name) => name.toLowerCase()));
54
+ const listed = await ghApi(repo, 'labels?per_page=100', '.[].name', { paginate: true });
55
+ const known = new Set(lines(listed).map((name) => name.toLowerCase()));
62
56
  KNOWN_LABELS.set(repoSlug, known);
63
57
  return known;
64
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "14.4.4",
3
+ "version": "14.4.6",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",