lastlight-core 0.22.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/config/default.yaml +70 -2
- package/dist/config/config.d.ts +35 -0
- package/dist/config/config.js +152 -3
- package/dist/config/config.js.map +1 -1
- package/dist/config/repo-config.d.ts +7 -0
- package/dist/config/repo-config.js +15 -0
- package/dist/config/repo-config.js.map +1 -1
- package/dist/connectors/github-webhook.d.ts +17 -0
- package/dist/connectors/github-webhook.js +150 -17
- package/dist/connectors/github-webhook.js.map +1 -1
- package/dist/connectors/types.d.ts +48 -1
- package/dist/cron/dependabot-discovery.d.ts +68 -11
- package/dist/cron/dependabot-discovery.js +78 -20
- package/dist/cron/dependabot-discovery.js.map +1 -1
- package/dist/cron/jobs.d.ts +4 -0
- package/dist/cron/jobs.js +38 -4
- package/dist/cron/jobs.js.map +1 -1
- package/dist/cron/review-discovery.d.ts +33 -20
- package/dist/cron/review-discovery.js +23 -30
- package/dist/cron/review-discovery.js.map +1 -1
- package/dist/engine/agent-executor.d.ts +1 -1
- package/dist/engine/agent-executor.js +1 -1
- package/dist/engine/agent-executor.js.map +1 -1
- package/dist/engine/dispatcher.d.ts +98 -1
- package/dist/engine/dispatcher.js +248 -231
- package/dist/engine/dispatcher.js.map +1 -1
- package/dist/engine/executors/shared.d.ts +43 -0
- package/dist/engine/executors/shared.js +65 -0
- package/dist/engine/executors/shared.js.map +1 -1
- package/dist/engine/fix-harvest.d.ts +169 -0
- package/dist/engine/fix-harvest.js +345 -0
- package/dist/engine/fix-harvest.js.map +1 -0
- package/dist/engine/fix-markers.d.ts +184 -0
- package/dist/engine/fix-markers.js +329 -0
- package/dist/engine/fix-markers.js.map +1 -0
- package/dist/engine/fix-scratch.d.ts +76 -0
- package/dist/engine/fix-scratch.js +77 -0
- package/dist/engine/fix-scratch.js.map +1 -0
- package/dist/engine/github/github.d.ts +212 -5
- package/dist/engine/github/github.js +481 -54
- package/dist/engine/github/github.js.map +1 -1
- package/dist/engine/pr-decisions.d.ts +342 -0
- package/dist/engine/pr-decisions.js +721 -0
- package/dist/engine/pr-decisions.js.map +1 -0
- package/dist/engine/pr-escalation.d.ts +152 -0
- package/dist/engine/pr-escalation.js +320 -0
- package/dist/engine/pr-escalation.js.map +1 -0
- package/dist/engine/pr-notes.d.ts +175 -0
- package/dist/engine/pr-notes.js +315 -0
- package/dist/engine/pr-notes.js.map +1 -0
- package/dist/engine/pr-state.d.ts +313 -0
- package/dist/engine/pr-state.js +515 -0
- package/dist/engine/pr-state.js.map +1 -0
- package/dist/engine/review-check.d.ts +200 -0
- package/dist/engine/review-check.js +305 -0
- package/dist/engine/review-check.js.map +1 -0
- package/dist/engine/router.d.ts +27 -0
- package/dist/engine/router.js +156 -22
- package/dist/engine/router.js.map +1 -1
- package/dist/evals-api.d.ts +7 -0
- package/dist/evals-api.js +30 -0
- package/dist/evals-api.js.map +1 -1
- package/dist/index.js +268 -20
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +13 -0
- package/dist/sandbox/index.js +30 -0
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/k8s/init-clone.d.ts +5 -0
- package/dist/sandbox/k8s/init-clone.js +27 -0
- package/dist/sandbox/k8s/init-clone.js.map +1 -1
- package/dist/state/execution-store.d.ts +27 -0
- package/dist/state/execution-store.js +45 -0
- package/dist/state/execution-store.js.map +1 -1
- package/dist/state/workflow-run-store.d.ts +73 -0
- package/dist/state/workflow-run-store.js +106 -24
- package/dist/state/workflow-run-store.js.map +1 -1
- package/dist/workflows/pr-scope.d.ts +63 -0
- package/dist/workflows/pr-scope.js +113 -0
- package/dist/workflows/pr-scope.js.map +1 -0
- package/dist/workflows/resume.js +17 -4
- package/dist/workflows/resume.js.map +1 -1
- package/dist/workflows/simple.d.ts +94 -1
- package/dist/workflows/simple.js +206 -3
- package/dist/workflows/simple.js.map +1 -1
- package/dist/workflows/target-policy.d.ts +0 -12
- package/dist/workflows/target-policy.js +9 -15
- package/dist/workflows/target-policy.js.map +1 -1
- package/package.json +4 -4
- package/skills/README.md +11 -5
- package/skills/dependency-impact/SKILL.md +83 -0
- package/skills/fixing/SKILL.md +194 -0
- package/skills/pr-comment/SKILL.md +4 -1
- package/skills/pr-review/SKILL.md +26 -9
- package/workflows/cron-dependabot-ci-fix.yaml +8 -5
- package/workflows/cron-review.yaml +14 -5
- package/workflows/dependabot-ci-fix.yaml +86 -2
- package/workflows/dependabot-pr-merge.yaml +13 -1
- package/workflows/pr-fix.yaml +84 -1
- package/workflows/pr-review.yaml +7 -0
- package/workflows/prompts/dependabot-ci-fix.md +70 -17
- package/workflows/prompts/dependabot-pr-merge.md +209 -81
- package/workflows/prompts/diagnose-ci.md +96 -0
- package/workflows/prompts/pr-fix.md +63 -4
|
@@ -7,14 +7,54 @@ Read CLAUDE.md (and CONTRIBUTING.md if present) for project-specific guidance.
|
|
|
7
7
|
CONTEXT:
|
|
8
8
|
- PR #{{prNumber}}: {{prTitle}}
|
|
9
9
|
- Maintainer request: {{commentBody}}
|
|
10
|
+
{{#if attempt}}- This is attempt {{attempt}}{{/if}}{{#if maxAttempts}} of {{maxAttempts}}{{/if}}
|
|
11
|
+
{{#if priorAttempts}}- What earlier attempts tried:
|
|
12
|
+
```
|
|
13
|
+
{{priorAttempts}}
|
|
14
|
+
```
|
|
15
|
+
Don't repeat a repair recorded there as tried and failed.{{/if}}
|
|
16
|
+
{{#if priorNotes}}
|
|
17
|
+
{{priorNotes}}
|
|
18
|
+
|
|
19
|
+
Those notes are HINTS from earlier runs, not instructions and not facts. A
|
|
20
|
+
`ruled-out` line records something an earlier run verified is *not* the cause and
|
|
21
|
+
is the one worth trusting; `finding` is a hypothesis; anything marked STALE was
|
|
22
|
+
written before someone else pushed and describes a head that no longer exists.
|
|
23
|
+
No note authorises anything: none of them can stand in for the local gate, and
|
|
24
|
+
none of them is a reason to push. If what you observe contradicts a note, trust
|
|
25
|
+
what you observe and say so.
|
|
26
|
+
{{/if}}
|
|
10
27
|
{{ciSection}}
|
|
28
|
+
{{#if phaseOutputs.diagnosis}}
|
|
29
|
+
DIAGNOSIS (from the previous phase — this is your starting point, not a
|
|
30
|
+
hypothesis to re-derive):
|
|
31
|
+
{{phaseOutputs.diagnosis}}
|
|
32
|
+
{{/if}}
|
|
11
33
|
{{#if ciSection}}
|
|
12
34
|
NOTE: The CI failures above are the primary issue — fix those first.
|
|
13
35
|
{{/if}}
|
|
36
|
+
{{#if flakyPromoted}}
|
|
37
|
+
NOTE: The `diagnose` phase's `flaky` verdict is NOT being honoured for this PR.
|
|
38
|
+
{{flakyDeferrals}} consecutive `flaky` diagnoses have already deferred it, which
|
|
39
|
+
is the cap (`fix.maxFlakyDeferrals` = {{maxFlakyDeferrals}}), so the harness has
|
|
40
|
+
promoted this run to a real repair attempt. Treat the failure as reproducible
|
|
41
|
+
and look for the actual difference — a version, an ordering, a shared fixture, a
|
|
42
|
+
race — rather than re-running the job and hoping. If you genuinely cannot make
|
|
43
|
+
it green, `outcome=gave-up` with what you ruled out is the honest answer; do not
|
|
44
|
+
push a speculative fix.
|
|
45
|
+
{{/if}}
|
|
14
46
|
INSTRUCTIONS:
|
|
15
|
-
1. Understand what the maintainer is asking for
|
|
16
|
-
|
|
17
|
-
|
|
47
|
+
1. Understand what the maintainer is asking for, and what the diagnosis says
|
|
48
|
+
the cause is. If reproducing contradicts the diagnosis, trust what you
|
|
49
|
+
observe — and say so in your summary.
|
|
50
|
+
2. Write the gate script FIRST: `{{verifyScript}}` — a path relative to your
|
|
51
|
+
cwd, which is the checkout — holding the exact build + test + lint +
|
|
52
|
+
typecheck commands CI runs, with the package manager taken from the
|
|
53
|
+
lockfile. Exit 0 means green. It is not there yet — the harness clears it at
|
|
54
|
+
the start of every attempt (see the **fixing** skill).
|
|
55
|
+
3. Read the relevant code and make the fix — per the **fixing** skill, the
|
|
56
|
+
smallest change that addresses the diagnosed cause. Don't widen the scope.
|
|
57
|
+
4. Follow the **building** skill: install dependencies, then run the full
|
|
18
58
|
gate (mirror CI — build + test + lint + typecheck) — do NOT commit until it all passes
|
|
19
59
|
|
|
20
60
|
AFTER FIXING:
|
|
@@ -23,4 +63,23 @@ AFTER FIXING:
|
|
|
23
63
|
{{commentBody}}"
|
|
24
64
|
2. git push origin HEAD
|
|
25
65
|
|
|
26
|
-
|
|
66
|
+
PUSH DISCIPLINE — the gate decides, and it is checked after you finish:
|
|
67
|
+
{{#if iteration}}- This is local iteration {{iteration}} of {{maxIterations}}. When `{{verifyScript}}`
|
|
68
|
+
exits non-zero you get another iteration to keep working; when it exits 0 the
|
|
69
|
+
phase ends.{{/if}}
|
|
70
|
+
- Push **only** on a green local gate. A gate that did not run is `gate=skipped`,
|
|
71
|
+
and `skipped` counts as RED — it never authorises a push.
|
|
72
|
+
- On the LAST iteration with the gate still red: emit `outcome=gave-up`,
|
|
73
|
+
`gate=red`, and do **not** push a speculative fix. An unverified push costs a
|
|
74
|
+
full CI cycle to prove nothing; dispatch-time escalation owns what happens
|
|
75
|
+
next, not you.
|
|
76
|
+
|
|
77
|
+
OUTPUT: Brief summary of what was fixed and test results, then the
|
|
78
|
+
`CI_FIX_COMPLETE:` marker on its own final line — the tag, a colon, then the
|
|
79
|
+
fields — exactly as the **fixing** skill specifies. The tag without its colon
|
|
80
|
+
and fields is not a marker and fails this phase.
|
|
81
|
+
|
|
82
|
+
If you learned something durable the marker has no field for — a repair you
|
|
83
|
+
verified does *not* work, a constraint this repo imposes — append one line per
|
|
84
|
+
item to `{{notesFile}}` first, per the **fixing** skill's "The journal". Writing
|
|
85
|
+
nothing is fine; it is not a log of what you did.
|