lastlight-core 0.21.7 → 0.21.8
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 +19 -2
- package/dist/admin/routes.js +218 -4
- package/dist/admin/routes.js.map +1 -1
- package/dist/config/config.d.ts +23 -0
- package/dist/config/config.js +19 -2
- package/dist/config/config.js.map +1 -1
- package/dist/cron/sandbox-sweep.d.ts +30 -0
- package/dist/cron/sandbox-sweep.js +59 -0
- package/dist/cron/sandbox-sweep.js.map +1 -0
- package/dist/engine/agent-executor.js +1 -0
- package/dist/engine/agent-executor.js.map +1 -1
- package/dist/engine/dispatcher.js +4 -5
- package/dist/engine/dispatcher.js.map +1 -1
- package/dist/engine/router.js +2 -2
- package/dist/engine/router.js.map +1 -1
- package/dist/engine/screen/classifier.d.ts +10 -0
- package/dist/engine/screen/classifier.js +38 -7
- package/dist/engine/screen/classifier.js.map +1 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +14 -0
- package/dist/sandbox/index.js +66 -0
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/reap.d.ts +49 -0
- package/dist/sandbox/reap.js +74 -0
- package/dist/sandbox/reap.js.map +1 -0
- package/dist/workflows/handlers/post-review.d.ts +1 -0
- package/dist/workflows/handlers/post-review.js +56 -28
- package/dist/workflows/handlers/post-review.js.map +1 -1
- package/dist/workflows/runner.d.ts +1 -1
- package/dist/workflows/runner.js +7 -2
- package/dist/workflows/runner.js.map +1 -1
- package/dist/workflows/simple.d.ts +10 -0
- package/dist/workflows/simple.js +30 -1
- package/dist/workflows/simple.js.map +1 -1
- package/dist/workflows/triggers.js +1 -2
- package/dist/workflows/triggers.js.map +1 -1
- package/package.json +3 -3
- package/skills/building/SKILL.md +14 -2
- package/workflows/prompts/dependabot-ci-fix.md +15 -2
package/skills/building/SKILL.md
CHANGED
|
@@ -49,8 +49,20 @@ runnable path is part of the work, not an optional extra.
|
|
|
49
49
|
## The gate
|
|
50
50
|
|
|
51
51
|
While iterating, run **only the tests covering the files you touched** — not the
|
|
52
|
-
whole suite on every edit.
|
|
53
|
-
|
|
52
|
+
whole suite on every edit. Two habits keep that inner loop fast, and a slow
|
|
53
|
+
feedback loop is what burns your time budget:
|
|
54
|
+
|
|
55
|
+
- **Turn coverage off** for inner-loop runs — coverage is a CI-gate concern, not
|
|
56
|
+
a feedback one, and instrumenting the whole tree can be several times slower
|
|
57
|
+
(`--coverage=false`, or your runner's equivalent).
|
|
58
|
+
- **Batch touched files into one invocation**, not one run per file. A runner
|
|
59
|
+
pays a fixed startup/compile cost per invocation (often tens of seconds on a
|
|
60
|
+
cold cache — the sandbox is always cold), so N separate runs pay it N times.
|
|
61
|
+
If the whole suite finishes in time comparable to a handful of files, just run
|
|
62
|
+
it once.
|
|
63
|
+
|
|
64
|
+
Then, **once before committing or claiming done, run the full gate and require
|
|
65
|
+
all of it to pass:**
|
|
54
66
|
|
|
55
67
|
1. Full test command — zero failures.
|
|
56
68
|
2. Lint command (if present) — fix all errors.
|
|
@@ -20,6 +20,12 @@ CONTEXT:
|
|
|
20
20
|
{{ciSection}}
|
|
21
21
|
|
|
22
22
|
INSTRUCTIONS:
|
|
23
|
+
Work efficiently and stay focused — you are on a time budget, so spend it on the
|
|
24
|
+
change that lands this PR. Make the smallest fix that works, don't refactor or
|
|
25
|
+
chase failures unrelated to the dependency bump, and don't sink your budget into
|
|
26
|
+
one slow or unreproducible check. Run tests cheaply per the **building** skill
|
|
27
|
+
(touched files only, coverage off, a single invocation over per-file runs).
|
|
28
|
+
|
|
23
29
|
1. FIRST bring the branch up to date with its base, so your fix is built on the
|
|
24
30
|
current base and a `behind` PR is made mergeable (so the merge step later sees
|
|
25
31
|
a `clean` PR, not `behind`). Merge — do NOT rebase or force-push:
|
|
@@ -37,6 +43,12 @@ INSTRUCTIONS:
|
|
|
37
43
|
the repo's package manager),
|
|
38
44
|
- a breaking change in the new version needs call sites / types updated,
|
|
39
45
|
- a peer-dependency or engines constraint needs a matching bump.
|
|
46
|
+
Triage the failing checks first: some **can't run in this sandbox at all** —
|
|
47
|
+
they need secrets, a live service, a browser, or infra you don't have (e.g.
|
|
48
|
+
Firebase credentials, a real database, an e2e suite against a deployed
|
|
49
|
+
backend). Don't burn budget trying to turn those green. Fix and verify what
|
|
50
|
+
you *can* reproduce here (build, unit tests, lint, typecheck) and note the
|
|
51
|
+
unreproducible checks for a human in your summary.
|
|
40
52
|
3. Make the **smallest** change that makes CI pass. Prefer a lockfile
|
|
41
53
|
regeneration or a mechanical call-site/type update over a behavioural change.
|
|
42
54
|
Do NOT widen the scope beyond making this update green.
|
|
@@ -70,5 +82,6 @@ once a later fix lands and turns the checks green, the `dependabot-pr-merge`
|
|
|
70
82
|
workflow re-assesses the PR and clears `requires-human` if the update is
|
|
71
83
|
trivial.)
|
|
72
84
|
|
|
73
|
-
OUTPUT: A brief summary of the root cause, exactly what you changed,
|
|
74
|
-
local test/lint/typecheck results
|
|
85
|
+
OUTPUT: A brief summary of the root cause, exactly what you changed, the
|
|
86
|
+
local test/lint/typecheck results, and any checks you couldn't reproduce in the
|
|
87
|
+
sandbox (so a human knows what still needs confirming).
|