@7n/rules 1.49.3 → 1.49.5
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 +12 -0
- package/package.json +2 -2
- package/rules/test/coverage/fix-worker.mjs +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.49.5] - 2026-07-26
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Додано безпечну telemetry batch verdict для coverage timeout-ів.
|
|
8
|
+
|
|
9
|
+
## [1.49.4] - 2026-07-26
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Додано безпечну telemetry batch verdict для coverage timeout-ів.
|
|
14
|
+
|
|
3
15
|
## [1.49.3] - 2026-07-26
|
|
4
16
|
|
|
5
17
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7n/rules",
|
|
3
|
-
"version": "1.49.
|
|
3
|
+
"version": "1.49.5",
|
|
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.
|
|
68
|
+
"@7n/llm-lib": "2.9.5",
|
|
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
|
-
|
|
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} */
|