lastlight-core 0.23.0 → 0.23.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lastlight-core",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "GitHub repository maintenance agent — Agent SDK harness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -67,8 +67,8 @@
67
67
  "yaml": "^2.8.3",
68
68
  "zod": "^4.3.6",
69
69
  "lastlight-workflow-engine": "0.3.0",
70
- "lastlight-shared": "0.3.0",
71
- "agentic-pi": "0.4.0"
70
+ "agentic-pi": "0.4.1",
71
+ "lastlight-shared": "0.3.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/better-sqlite3": "^7.6.0",
@@ -27,8 +27,8 @@ more than the one above it.
27
27
  | # | Evidence | How |
28
28
  |---|---|---|
29
29
  | 1 | Dev vs runtime dependency | The manifest change: `dependencies` vs `devDependencies`. `@types/*`, linters, formatters and test runners are dev-only; so is a GitHub Actions tag/SHA bump |
30
- | 2 | Release notes / changelog / breaking-change headings | `github_get_pull_request` → the **body**. Dependabot embeds Release notes, Changelog and Commits sections, plus a compatibility-score badge |
31
- | 3 | Blast radius | `github_search_code` for `from "<pkg>"` / `require("<pkg>")` — count the direct import sites |
30
+ | 2 | Release notes / changelog / breaking-change headings | `github_get_pull_request` → the **body**. Dependabot embeds Release notes, Changelog and Commits sections, plus a compatibility-score badge. The body comes back capped at 4000 chars; if it was cut and you still can't see whether the release documents a breaking change, re-call with `full_body: true` — a buried breaking-changes heading is precisely what this row is for. Don't reach for it when the head of the notes already decided the tier |
31
+ | 3 | Blast radius | `github_search_code` for `from "<pkg>"` / `require("<pkg>")` — count the direct import sites. The result's `total_count` **is** that count, so read it rather than tallying `items`, and don't fan out a query per import spelling when one is enough to size the blast radius |
32
32
  | 4 | Security sensitivity | Does the package sit in auth, crypto, serialization, network, file I/O, or database-driver territory? |
33
33
  | 5 | Behavioural evidence | The settled check state supplied in your prompt — deterministic, computed in code, **not** inferred from `mergeable_state` |
34
34
 
@@ -23,6 +23,10 @@ prompt. When an excerpt is inconclusive, pull the full job log with
23
23
  prompt says so explicitly, and names the reason — say so in your verdict too,
24
24
  and do not invent a cause from an annotation that was truncated.
25
25
 
26
+ The `prNumber` in your prompt **is** your target, and its head is already
27
+ checked out. Do **not** call `github_list_pull_requests` to "find" or "confirm"
28
+ it; you were handed it, and listing dumps every open PR for nothing.
29
+
26
30
  **2. Read the CI definition.** `.github/workflows/*.yml` is already in the
27
31
  checkout (the harness pre-cloned the PR head). Extract, per failing job: runner
28
32
  OS, toolchain versions (`setup-node`, `setup-python`, matrix entries), the
@@ -20,7 +20,10 @@ For general issue questions use `issue-comment`; for a full review use
20
20
 
21
21
  ### 1. Read the PR and the question
22
22
 
23
- - `github_get_pull_request` → title, body, base, head.
23
+ - `github_get_pull_request` → title, body, base, head. `prNumber` in the Context
24
+ block **is** your target — go straight there. Do **not** call
25
+ `github_list_pull_requests` to "find" or "confirm" it; you were handed it, and
26
+ listing dumps every open PR for nothing.
24
27
  - The triggering question is in `context.commentBody`. Answer *that* question —
25
28
  don't generalise to a review or answer a different one.
26
29
 
@@ -85,7 +85,12 @@ in tiers instead:
85
85
 
86
86
  a. Call `github_list_pull_request_files` ({ owner: "{{owner}}", repo: "{{repo}}",
87
87
  pull_number }) to get the changed files with per-file `additions`/`deletions`.
88
- This file list — plus the PR title — is your primary signal.
88
+ This file list — plus the PR title — is your primary signal. It comes back as
89
+ `{ items, has_more, next_page }` and carries NO patches by default, which is
90
+ exactly what you want here; leave `include_patch` alone.
91
+ PR #{{prNumber}} **is** your target — start here. Do NOT call
92
+ `github_list_pull_requests` to "find" or "confirm" it; you were handed it, and
93
+ listing a dependency-heavy repo dumps every open PR for nothing.
89
94
  b. A lockfile / `go.sum` change is expected noise for a version bump. NEVER read
90
95
  its diff; judge the bump from the PR title and the manifest change alone.
91
96
  c. If the only NON-lockfile files touched are the manifest (`package.json`,