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.
Files changed (40) hide show
  1. package/config/default.yaml +19 -2
  2. package/dist/admin/routes.js +218 -4
  3. package/dist/admin/routes.js.map +1 -1
  4. package/dist/config/config.d.ts +23 -0
  5. package/dist/config/config.js +19 -2
  6. package/dist/config/config.js.map +1 -1
  7. package/dist/cron/sandbox-sweep.d.ts +30 -0
  8. package/dist/cron/sandbox-sweep.js +59 -0
  9. package/dist/cron/sandbox-sweep.js.map +1 -0
  10. package/dist/engine/agent-executor.js +1 -0
  11. package/dist/engine/agent-executor.js.map +1 -1
  12. package/dist/engine/dispatcher.js +4 -5
  13. package/dist/engine/dispatcher.js.map +1 -1
  14. package/dist/engine/router.js +2 -2
  15. package/dist/engine/router.js.map +1 -1
  16. package/dist/engine/screen/classifier.d.ts +10 -0
  17. package/dist/engine/screen/classifier.js +38 -7
  18. package/dist/engine/screen/classifier.js.map +1 -1
  19. package/dist/index.js +21 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/sandbox/index.d.ts +14 -0
  22. package/dist/sandbox/index.js +66 -0
  23. package/dist/sandbox/index.js.map +1 -1
  24. package/dist/sandbox/reap.d.ts +49 -0
  25. package/dist/sandbox/reap.js +74 -0
  26. package/dist/sandbox/reap.js.map +1 -0
  27. package/dist/workflows/handlers/post-review.d.ts +1 -0
  28. package/dist/workflows/handlers/post-review.js +56 -28
  29. package/dist/workflows/handlers/post-review.js.map +1 -1
  30. package/dist/workflows/runner.d.ts +1 -1
  31. package/dist/workflows/runner.js +7 -2
  32. package/dist/workflows/runner.js.map +1 -1
  33. package/dist/workflows/simple.d.ts +10 -0
  34. package/dist/workflows/simple.js +30 -1
  35. package/dist/workflows/simple.js.map +1 -1
  36. package/dist/workflows/triggers.js +1 -2
  37. package/dist/workflows/triggers.js.map +1 -1
  38. package/package.json +3 -3
  39. package/skills/building/SKILL.md +14 -2
  40. package/workflows/prompts/dependabot-ci-fix.md +15 -2
@@ -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. Then, **once before committing or claiming done, run
53
- the full gate and require all of it to pass:**
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, and the
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).