@soleur/opencode 3.374.2 → 3.374.3

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.
@@ -48,6 +48,6 @@ Your insights should help developers understand not just what the code does, but
48
48
 
49
49
  ## Sharp Edges
50
50
 
51
- - **A workflow's enabled/disabled state lives on GitHub's side, never in git — do not report it UNVERIFIABLE.** `gh api 'repos/{owner}/{repo}/actions/workflows?per_page=100' --jq '.workflows[] | "\(.state) \(.updated_at) \(.path)"'` returns `active` / `disabled_manually` with the change timestamp; `git log -- .github/workflows/<file>` cannot see a dashboard toggle. **Why:** #8149 — a ledger row claiming `claude-code-review.yml` was `disabled_manually` since 2026-02-12 was reported unverifiable from git; the Actions API confirmed it in one call.
51
+ - **A workflow's enabled/disabled state lives on GitHub's side, never in git — do not report it UNVERIFIABLE.** `gh api --paginate 'repos/{owner}/{repo}/actions/workflows?per_page=100' --jq '.workflows[] | "\(.state) \(.updated_at) \(.path)"'` returns `active` / `disabled_manually` with the change timestamp; `git log -- .github/workflows/<file>` cannot see a dashboard toggle. **Why:** #8149 — a ledger row claiming `claude-code-review.yml` was `disabled_manually` since 2026-02-12 was reported unverifiable from git; the Actions API confirmed it in one call.
52
52
  - **Before concluding "the history does not contain X", check whether the clone is SHALLOW.** `git rev-parse --is-shallow-repository` → `true` means `git log` stops at a graft point and an *unfetched* commit is indistinguishable from an *absent* one. Retry with `--all` (and `--follow` for renames) before reporting a gap: the full history is often already in the object store, reachable from `refs/remotes/*` but not from the shallow first-parent line. **Why:** #6981 — `git log` on `cloud-init.yml` showed 21 commits starting 2026-07-11, so the agent-authored conclusion was "the March-era config is unknowable" plus a fabricated "March-vs-July image difference" hypothesis, which then shipped into a GitHub issue, a PR body, and a post-mortem. `git log --all` recovered **113 commits back to 2026-02-10** and the real answer was flatly available: the file was added ~28h *after* the host in question was created, so that host never ran it. See `knowledge-base/project/learnings/2026-07-27-my-assertion-pinned-the-text-not-the-shell-that-runs-it.md` §5.
53
53
  - **Branch-vs-main comparisons MUST use three-dot diff (`origin/main...HEAD`), never two-dot (`origin/main..HEAD`).** Two-dot shows commits *main* gained since the fork point — a branch behind main will appear to have "reverted" everything main merged in the meantime, producing confidently-stated false-positive P0 findings ("branch contradicts merged PR #N", "branch deletes file X"). When asserting that a branch reverts, deletes, or contradicts work on main, ALWAYS verify via `git diff origin/main...HEAD --name-only` and `git log origin/main..HEAD --oneline` (the latter intentionally two-dot, but used for *commits this branch added*, not as a file-list source). Recurrence record: 2026-04-22 (PR #2795 review) and 2026-05-04 (PR #3123 review) both saw this fail-loud-blocker pattern from the same root cause; the prior prose-only prevention did not stick. See `knowledge-base/project/learnings/2026-04-22-markdown-table-parser-papercuts-and-review-diff-direction.md` §4.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.374.2",
3
+ "version": "3.374.3",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -254,7 +254,7 @@ cmd_activity() {
254
254
  check_array_response "$issues_f" issues
255
255
  check_cap "$(_json_len "$issues_f")" issues
256
256
 
257
- prs=$(gh api "repos/${repo}/pulls?state=all&sort=updated&direction=desc&per_page=${PER_PAGE}" 2>&1) || {
257
+ prs=$(gh api --paginate "repos/${repo}/pulls?state=all&sort=updated&direction=desc&per_page=${PER_PAGE}" 2>&1) || {
258
258
  _CAUSE="pulls-fetch-failed"
259
259
  echo "GITHUB_COLLECTOR_CAUSE=pulls: $(echo "$prs" | head -c 200 | tr '\n' ' ')" >&2
260
260
  echo "Error: Failed to fetch PRs ($(echo "$prs" | head -c 200))" >&2
@@ -127,7 +127,7 @@ After `one-shot` returns (PR merged), re-query the milestone using the same labe
127
127
 
128
128
  ```bash
129
129
  gh issue list --label "${LABEL:-deferred-scope-out}" --state open \
130
- --milestone "$MILESTONE" --json number --jq 'length'
130
+ --milestone "$MILESTONE" --limit 100 --json number --jq 'length'
131
131
  ```
132
132
 
133
133
  Report: `Before: X, After: Y, Closed: Z` and the per-area drain.
@@ -70,7 +70,7 @@ else
70
70
  # gh milestone flags take the title, not numeric ID — rule
71
71
  # cq-gh-issue-create-milestone-takes-title.
72
72
  if ! grep -Fxq "$MILESTONE" \
73
- < <(gh api "repos/:owner/:repo/milestones?state=open&per_page=100" --jq '.[].title' 2>/dev/null); then
73
+ < <(gh api --paginate "repos/:owner/:repo/milestones?state=open&per_page=100" --jq '.[].title' 2>/dev/null); then
74
74
  echo "Error: milestone title '$MILESTONE' not found (open milestones only)" >&2
75
75
  exit 2
76
76
  fi
@@ -185,7 +185,7 @@ fi
185
185
  Surface any OPEN inngest-down alarm so the operator is never told "prod is healthy" while the durable trigger layer (armed reminders + all `server/inngest/functions/` crons) is dark. The external watchdog (`scheduled-inngest-health.yml`) files `[ci/inngest-down]` on a confirmed down (deeper probe: `/hooks/inngest-liveness`); this is a cheap read needing no Sentry token:
186
186
 
187
187
  ```bash
188
- gh issue list --label ci/inngest-down --state open \
188
+ gh issue list --label ci/inngest-down -s open -L 100 \
189
189
  --json number,title,createdAt --jq '.[] | "#\(.number) \(.title) (opened \(.createdAt))"'
190
190
  ```
191
191
 
@@ -146,7 +146,7 @@ gh issue list --state open --limit 100 --json number,title,labels,milestone
146
146
  ```
147
147
 
148
148
  ```bash
149
- gh api repos/{owner}/{repo}/milestones --jq '.[] | {title, open_issues, closed_issues, due_on}'
149
+ gh api --paginate repos/{owner}/{repo}/milestones --jq '.[] | {title, open_issues, closed_issues, due_on}'
150
150
  ```
151
151
 
152
152
  **Present Context Summary.** Display a table of what was found and what is missing. If an existing `roadmap.md` was found, ask whether to update it or start fresh. In headless mode: default to "Update existing" if found, "Start fresh" if not.
@@ -288,7 +288,7 @@ git commit -m "docs(product): generate product roadmap"
288
288
  List existing milestones, then create any that are missing:
289
289
 
290
290
  ```bash
291
- gh api repos/{owner}/{repo}/milestones --jq '.[].title'
291
+ gh api --paginate repos/{owner}/{repo}/milestones --jq '.[].title'
292
292
  ```
293
293
 
294
294
  For each phase not already present:
@@ -175,7 +175,7 @@ filter_frontier() {
175
175
 
176
176
  # --- CLI entrypoint (only when executed directly, never when sourced) ---
177
177
  _milestones_json() {
178
- gh api 'repos/{owner}/{repo}/milestones?state=all&per_page=100' \
178
+ gh api --paginate 'repos/{owner}/{repo}/milestones?state=all&per_page=100' \
179
179
  --jq '[ .[] | {title, state, open_issues, closed_issues} ]'
180
180
  }
181
181
 
@@ -61,7 +61,7 @@ cleanup() {
61
61
  fi
62
62
  echo ""
63
63
  echo "IMPORTANT: After deleting the App installation, sweep bypass_actors for ghost entries:"
64
- echo " gh api /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
64
+ echo " gh api --paginate /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
65
65
  echo ""
66
66
  echo "Bootstrap cleanup: Revoke the GitHub PAT used for bootstrapping — it is no longer needed."
67
67
  exit "$exit_code"
@@ -208,7 +208,7 @@ if $DRY_RUN; then
208
208
  echo "--- Teardown ---"
209
209
  echo " gh api -X DELETE /app/installations/<install-id>"
210
210
  echo " cd ${PROVISIONING_DIR} && terraform destroy"
211
- echo " Sweep bypass_actors: gh api /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
211
+ echo " Sweep bypass_actors: gh api --paginate /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
212
212
  echo ""
213
213
  echo "All provisioning complete. Run runbook Steps 5-10 manually."
214
214
  exit 0
@@ -75,7 +75,7 @@ P1 findings get the current active milestone. P2/P3 findings get `Post-MVP / Lat
75
75
  Detect the active milestone:
76
76
 
77
77
  ```bash
78
- gh api repos/:owner/:repo/milestones --jq '[.[] | select(.state=="open") | select(.title | startswith("Phase"))] | sort_by(.due_on) | .[0].title // "Post-MVP / Later"'
78
+ gh api --paginate repos/:owner/:repo/milestones --jq '[.[] | select(.state=="open") | select(.title | startswith("Phase"))] | sort_by(.due_on) | .[0].title // "Post-MVP / Later"'
79
79
  ```
80
80
 
81
81
  ## Duplicate Detection
@@ -152,7 +152,7 @@ For reviews with 15+ findings, create issues sequentially to avoid GitHub API ra
152
152
 
153
153
  ## Sharp Edges
154
154
 
155
- - `gh issue create --milestone <value>` resolves against milestone **title**, not number. `--milestone 6` fails with `could not add to milestone '6': '6' not found` even when milestone 6 exists. Retrieve the title via `gh api /repos/<owner>/<repo>/milestones --jq '.[] | {number, title}'` and pass the title. The `number` field is REST-API-only. **Why:** filing #2272 retried with `--milestone "Post-MVP / Later"` to succeed.
155
+ - `gh issue create --milestone <value>` resolves against milestone **title**, not number. `--milestone 6` fails with `could not add to milestone '6': '6' not found` even when milestone 6 exists. Retrieve the title via `gh api --paginate /repos/<owner>/<repo>/milestones --jq '.[] | {number, title}'` and pass the title. The `number` field is REST-API-only. **Why:** filing #2272 retried with `--milestone "Post-MVP / Later"` to succeed.
156
156
 
157
157
  ## Cost-of-Filing Gate Rationale (relocated from review/SKILL.md §5)
158
158
 
@@ -2101,7 +2101,7 @@ dispatches, while `pull_request_target` jobs (CLA) run against the *base*, dispa
2101
2101
  green. `gh pr checks` then reports "all checks settled, zero failures" over zero relevant checks.
2102
2102
  **"No failures" and "the checks ran" are different claims**, and a conflicting PR silently
2103
2103
  produces the first without the second. Assert the checks you *expect* are **present**, not merely
2104
- non-failing: `gh api "repos/<o>/<r>/actions/runs?head_sha=$(git rev-parse HEAD)" --jq '[.workflow_runs[].name]'`.
2104
+ non-failing: `gh api --paginate "repos/<o>/<r>/actions/runs?head_sha=$(git rev-parse HEAD)" --jq '[.workflow_runs[].name]'`.
2105
2105
  (That ref also used to red AC17 on `INDEX.md`'s count, #8137 / #8370; #8377 untracked the file and
2106
2106
  retired both the driver and AC17.)
2107
2107
 
@@ -69,7 +69,7 @@ Read [route-list.yaml](./references/route-list.yaml). Each route has `{path, aut
69
69
  ### 2. Global-cap check
70
70
 
71
71
  ```bash
72
- OPEN_COUNT=$(gh issue list --label ux-audit --state open --json number --jq 'length')
72
+ OPEN_COUNT=$(gh issue list --label ux-audit --state open --limit 100 --json number --jq 'length')
73
73
  if [ "$OPEN_COUNT" -ge 20 ]; then
74
74
  echo "::warning::Global ux-audit cap reached ($OPEN_COUNT open). Refusing to file new issues."
75
75
  exit 0