@7n/test 0.10.1 → 0.10.2

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
+ ## [0.10.2] - 2026-07-02
4
+
5
+ ### Fixed
6
+
7
+ - resolveLocalModel (gen-tests.mjs) помилково трактував checkEnv() з @nitra/check-env як гетер значення змінної середовища — насправді це лише валідатор наявності, що завжди повертає undefined на успіху. Через це N_LOCAL_MIN_MODEL ігнорувався і двоярусна генерація (local+cloud) ніколи не вмикалась, навіть за коректно заданої змінної — завжди йшов fallback у single-file (cloud) режим. Замінено на пряме читання process.env.N_LOCAL_MIN_MODEL.
8
+
3
9
  ## [0.10.1] - 2026-07-02
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7n/test",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "CLI-утиліта @7n/test",
5
5
  "keywords": [
6
6
  "7n",
@@ -3,7 +3,7 @@ type: JS Module
3
3
  title: gen-tests.mjs
4
4
  resource: npm/src/gen-tests.mjs
5
5
  docgen:
6
- crc: f8507a21
6
+ crc: 899f36bc
7
7
  model: omlx/gemma-4-e4b-it-OptiQ-4bit
8
8
  score: 100
9
9
  issues: judge:inaccurate:0.99
package/src/gen-tests.mjs CHANGED
@@ -21,7 +21,7 @@ import { resolveVitestRun } from './lib/vitest-shim.mjs'
21
21
  import { extractExportsWithComplexity } from './classify-exports.mjs'
22
22
  import { analyzeModule } from './lib/ast-analyze.mjs'
23
23
  import { probeModule, probeFetchCalls, probeTimeVariants, probeHelpers } from './lib/runtime-probe.mjs'
24
- import { checkEnv } from '@nitra/check-env'
24
+ import { env } from 'node:process'
25
25
 
26
26
  const MAX_SRC_BYTES = 6000
27
27
 
@@ -1142,7 +1142,7 @@ async function generateOneTest(fileInfo, dir, callTextFn) {
1142
1142
  */
1143
1143
  function resolveLocalModel(opts) {
1144
1144
  if (opts.localModel !== undefined) return opts.localModel
1145
- return checkEnv(['N_LOCAL_MIN_MODEL']) ?? null
1145
+ return env.N_LOCAL_MIN_MODEL ?? null
1146
1146
  }
1147
1147
 
1148
1148
  /**