@7n/rules 1.49.3 → 1.49.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.49.4] - 2026-07-26
4
+
5
+ ### Fixed
6
+
7
+ - Додано безпечну telemetry batch verdict для coverage timeout-ів.
8
+
3
9
  ## [1.49.3] - 2026-07-26
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7n/rules",
3
- "version": "1.49.3",
3
+ "version": "1.49.4",
4
4
  "description": "CLI еталонних правил і skills (префікс n-): синк у репозиторій, дельта-lint, конформність",
5
5
  "keywords": [
6
6
  "cli",
@@ -65,7 +65,7 @@
65
65
  "rename-yaml-extensions": "bun ./bin/n-rules.js rename-yaml-extensions"
66
66
  },
67
67
  "dependencies": {
68
- "@7n/llm-lib": "2.9.3",
68
+ "@7n/llm-lib": "2.9.4",
69
69
  "@7n/mt": "^0.5.1",
70
70
  "@zed-industries/agent-client-protocol": "^0.4.5",
71
71
  "ajv": "^8.20.0",
@@ -59,7 +59,18 @@ export function groupViolations(violations) {
59
59
  */
60
60
  function hookCtx(ctx, deadlineAt) {
61
61
  const remaining = deadlineAt ? Math.max(1000, deadlineAt - Date.now()) : ctx.timeoutMs
62
- return { ...ctx, timeoutMs: remaining }
62
+ const workerDeadlineMs = ctx.timeoutMs ? Math.round(ctx.timeoutMs * DEADLINE_FRACTION) : null
63
+ return {
64
+ ...ctx,
65
+ timeoutMs: remaining,
66
+ // Не змінює бюджет: лише дає coverage hook-у фактичний контекст, щоб його
67
+ // verdict міг відрізнити timeout batch-а від 80%-deadline самого worker-а.
68
+ coverageTimeout: {
69
+ requestedMs: ctx.timeoutMs ?? null,
70
+ workerDeadlineMs,
71
+ effectiveHookTimeoutMs: remaining ?? null
72
+ }
73
+ }
63
74
  }
64
75
 
65
76
  /** @type {FixWorkerFn} */