lastlight-core 0.20.1 → 0.21.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.
@@ -32,6 +32,18 @@ export declare const PER_TARGET_REUSE_WORKFLOWS: Set<string>;
32
32
  * second member. Kept here so the dispatcher and `src/index.ts` share one list.
33
33
  */
34
34
  export declare const PR_FIX_SHAPED_WORKFLOWS: Set<string>;
35
+ /**
36
+ * Dependency-update workflows reached from an automated check_suite webhook
37
+ * (`pr.checks_passed` → `dependabot-pr-merge`, `pr.checks_failed` →
38
+ * `dependabot-ci-fix`). The dispatcher applies a pre-sandbox idempotency guard
39
+ * to these — skip a PR carrying `requires-human`, or one already assessed at its
40
+ * current head SHA — so a re-fired suite / cron overlap doesn't burn tokens
41
+ * re-doing work. Scoped to the two dependency workflows because that's where the
42
+ * `requires-human` disposition and the "assess once per green SHA" contract
43
+ * live; a human `@bot` request is an intentional override and is NOT gated
44
+ * (the guard keys off the webhook event type, not just the handler).
45
+ */
46
+ export declare const DEPENDENCY_WEBHOOK_WORKFLOWS: Set<string>;
35
47
  /**
36
48
  * Workflows whose per-target workspace is **recreated from the default branch**
37
49
  * on a fresh run rather than refreshed onto an existing feature branch. Like
@@ -41,6 +41,21 @@ export const PER_TARGET_REUSE_WORKFLOWS = new Set([
41
41
  * second member. Kept here so the dispatcher and `src/index.ts` share one list.
42
42
  */
43
43
  export const PR_FIX_SHAPED_WORKFLOWS = new Set(["pr-fix", "dependabot-ci-fix"]);
44
+ /**
45
+ * Dependency-update workflows reached from an automated check_suite webhook
46
+ * (`pr.checks_passed` → `dependabot-pr-merge`, `pr.checks_failed` →
47
+ * `dependabot-ci-fix`). The dispatcher applies a pre-sandbox idempotency guard
48
+ * to these — skip a PR carrying `requires-human`, or one already assessed at its
49
+ * current head SHA — so a re-fired suite / cron overlap doesn't burn tokens
50
+ * re-doing work. Scoped to the two dependency workflows because that's where the
51
+ * `requires-human` disposition and the "assess once per green SHA" contract
52
+ * live; a human `@bot` request is an intentional override and is NOT gated
53
+ * (the guard keys off the webhook event type, not just the handler).
54
+ */
55
+ export const DEPENDENCY_WEBHOOK_WORKFLOWS = new Set([
56
+ "dependabot-pr-merge",
57
+ "dependabot-ci-fix",
58
+ ]);
44
59
  /**
45
60
  * Workflows whose per-target workspace is **recreated from the default branch**
46
61
  * on a fresh run rather than refreshed onto an existing feature branch. Like
@@ -1 +1 @@
1
- {"version":3,"file":"target-policy.js","sourceRoot":"","sources":["../../src/workflows/target-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC;IAChD,WAAW;IACX,QAAQ;IACR,mBAAmB;IACnB,wEAAwE;IACxE,yEAAyE;IACzE,4EAA4E;IAC5E,oCAAoC;IACpC,qBAAqB;CACtB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAEhF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE3F;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAC;IACtD,WAAW;IACX,MAAM;IACN,SAAS;IACT,QAAQ;CACT,CAAC,CAAC"}
1
+ {"version":3,"file":"target-policy.js","sourceRoot":"","sources":["../../src/workflows/target-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC;IAChD,WAAW;IACX,QAAQ;IACR,mBAAmB;IACnB,wEAAwE;IACxE,yEAAyE;IACzE,4EAA4E;IAC5E,oCAAoC;IACpC,qBAAqB;CACtB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAEhF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAC;IAClD,qBAAqB;IACrB,mBAAmB;CACpB,CAAC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE3F;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAC;IACtD,WAAW;IACX,MAAM;IACN,SAAS;IACT,QAAQ;CACT,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lastlight-core",
3
- "version": "0.20.1",
3
+ "version": "0.21.1",
4
4
  "description": "GitHub repository maintenance agent — Agent SDK harness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@earendil-works/pi-ai": "^0.80.10",
45
- "@hono/node-server": "^1.19.13",
45
+ "@hono/node-server": "^2.0.10",
46
46
  "@octokit/auth-app": "^8.2.0",
47
47
  "@opentelemetry/api": "^1.9.1",
48
48
  "@opentelemetry/exporter-logs-otlp-http": "^0.220.0",
@@ -54,12 +54,12 @@
54
54
  "@opentelemetry/sdk-node": "^0.220.0",
55
55
  "@opentelemetry/semantic-conventions": "^1.41.1",
56
56
  "@sinclair/typebox": "^0.34.49",
57
- "@slack/bolt": "^4.6.0",
57
+ "@slack/bolt": "^5.0.0",
58
58
  "@slack/web-api": "^7.16.0",
59
59
  "arctic": "^3.7.0",
60
- "better-sqlite3": "^11.0.0",
60
+ "better-sqlite3": "^12.11.1",
61
61
  "croner": "^9.0.0",
62
- "hono": "^4.12.14",
62
+ "hono": "^4.12.31",
63
63
  "octokit": "^5.0.5",
64
64
  "yaml": "^2.8.3",
65
65
  "zod": "^4.3.6",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/better-sqlite3": "^7.6.0",
72
- "@types/node": "^22.0.0",
72
+ "@types/node": "^26.1.1",
73
73
  "concurrently": "^9.0.0",
74
74
  "dependency-cruiser": "^18.1.0",
75
75
  "tsx": "^4.0.0",
@@ -63,7 +63,11 @@ phases:
63
63
  # report a false green (e.g. after a context-overflow retry). Fail loudly.
64
64
  on_output:
65
65
  requires_marker: "ASSESSMENT_COMPLETE"
66
+ # Deliberately NO on_start / on_success acks: they posted a comment on the PR
67
+ # on EVERY run (a green suite fires per check-reporting app, plus the daily
68
+ # cron), which flooded dependency PRs with "Assessing…/Assessed…" noise. The
69
+ # run now comments only when it has something to say — a real verdict
70
+ # (functional / requires-human) or a rebase nudge from the prompt, or the
71
+ # on_failure notice below.
66
72
  messages:
67
- on_start: "Assessing dependency PR for auto-merge..."
68
- on_success: "Assessed the dependency PR — auto-merge enabled if it's a trivial, green update; anything functional left for review."
69
73
  on_failure: "Couldn't assess the dependency PR — leaving for a human."