leerness 1.9.242 β 1.9.243
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 +46 -0
- package/README.md +3 -3
- package/bin/harness.js +73 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.243 β 2026-05-26
|
|
4
|
+
|
|
5
|
+
**π UR-0014 3λ¨κ³: CJK λ€κ΅μ΄ λΆλ₯ (νκ΅μ΄/μΌλ³Έμ΄/μ€κ΅μ΄) + session close --auto-fix-encoding + handoff body --apply μ§μ
μ .**
|
|
6
|
+
|
|
7
|
+
### μ¬μ©μ λͺ
μ (UR-0014) β 3λ¨κ³ λ€κ΅μ΄ λ³΄κ° + λ§κ° μλν
|
|
8
|
+
|
|
9
|
+
1.9.241 (κ°μ§) β 1.9.242 (μλ μμ ) β 1.9.243 (λ€κ΅μ΄ + λ§κ° μλ ν΅ν©):
|
|
10
|
+
|
|
11
|
+
### 1. CJK λΆλ₯ β Korean/Japanese/Chinese μλ μλ³
|
|
12
|
+
- `_scanShellScriptsEncoding()` μ `riskType` νλ μΆκ°
|
|
13
|
+
- UTF-8 byte range λΆλ₯:
|
|
14
|
+
- Korean (Hangul U+AC00-D7AF) β 0xEA-0xED μμ β CP949 μν
|
|
15
|
+
- Japanese (Hiragana/Katakana U+3040-30FF) β 0xE3 μμ β CP932 (Shift-JIS) μν
|
|
16
|
+
- Chinese (CJK Unified U+4E00-9FFF) β 0xE4-0xE9 μμ β CP936 (GBK) μν
|
|
17
|
+
- `atRisk[].cjk`: { korean, japanese, chinese, other } μΈλΆ μΉ΄μ΄νΈ
|
|
18
|
+
- `result.riskTypeCounts`: λΆλ₯λ³ μμ½ ν΅κ³
|
|
19
|
+
- Locale λ³ μ νν μν λ©μμ§ ("Windows νκ΅μ΄/μΌλ³Έμ΄/μ€κ΅μ΄ PowerShell μμ CPxxx λ‘ μ€μΈμ κ°λ₯")
|
|
20
|
+
|
|
21
|
+
### 2. session close --auto-fix-encoding λ§κ° μλ ν볡
|
|
22
|
+
- 1.9.224 (--auto-apply-delivered) + 1.9.237 (--auto-cleanup-branches) ν¨ν΄ νμ₯
|
|
23
|
+
- λ§κ° μ μ
Έ μ€ν¬λ¦½νΈ μΈμ½λ© μν μλ BOM μΆκ°
|
|
24
|
+
- κΈ°λ³Έ: μλ΄λ§ (`μλ ν볡 κ°λ₯` hint) Β· `--auto-fix-encoding` λͺ
μ μμλ§ λ³κ²½
|
|
25
|
+
- agent-mode stop νλ¦μ μλ chain (`session close --auto-apply-delivered --auto-cleanup-branches --auto-fix-encoding`)
|
|
26
|
+
|
|
27
|
+
### 3. handoff body --apply μ§μ
μ νμ
|
|
28
|
+
- μΈμ½λ© μν λ°κ²¬ μ λ³Έλ¬Έμ μλ μλ΄ 2μ€ μΆκ°:
|
|
29
|
+
- `β μλ ν볡: leerness env encoding --apply (UTF-8 BOM μλ μΆκ°, 1.9.242)`
|
|
30
|
+
- `β λ§κ° μ μλ: session close --auto-fix-encoding (1.9.243)`
|
|
31
|
+
- CJK λΆλ₯ μμ½ νμ: `λΆλ₯: korean=N, japanese=M, chinese=K (1.9.243 CJK)`
|
|
32
|
+
|
|
33
|
+
### 4. λμ νκ· (1.9.207~242) β λͺ¨λ μ μ§
|
|
34
|
+
- MCP 69 λꡬ μ μ§
|
|
35
|
+
- JSON ν΅ν© 10 νλ (envInfo) μ μ§
|
|
36
|
+
- drift check --auto-fix env encoding ν΅ν© μ μ§
|
|
37
|
+
|
|
38
|
+
### 5. stress-v188 β **24/24 PASS Β· 100%**
|
|
39
|
+
- 1.9.243 (8): VERSION + CJK 3μ’
λΆλ₯ μ νλ + riskTypeCounts + atRisk[].cjk + session close μλ/κΈ°λ³Έ λͺ¨λ + handoff body μ§μ
μ + agent-mode stop chain
|
|
40
|
+
- μ±λ₯ (2): cold_start avg 333ms Β· session close --auto-fix 438ms
|
|
41
|
+
- λμ νκ· (14): 1.9.207~242 + 보μ + npm publish
|
|
42
|
+
|
|
43
|
+
### 6. μλ release (105 λΌμ΄λ main-push streak Β· 66 λΌμ΄λ npm publish streak)
|
|
44
|
+
|
|
45
|
+
π **λ€κ΅μ΄ CJK μμ μλν** β Korean/Japanese/Chinese PowerShell μΈμ½λ© μ€μΈμ μ¬μ μ°¨λ¨
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
3
49
|
## 1.9.242 β 2026-05-26
|
|
4
50
|
|
|
5
51
|
**π UR-0014 2λ¨κ³: env encoding --apply (BOM μλ μΆκ°) + JSON 10 νλ envInfo + drift --auto-fix ν΅ν©.**
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> **AI μ½λ© μμ΄μ νΈμ κ±°μ§ μλ£Β·μ€λ³΅Β·λ§κ°Β·μΆ©λμ λ§μμ£Όλ κ²μΒ·κΈ°μ΅Β·νμ
CLI νλ€μ€.**
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/leerness) [](https://www.npmjs.com/package/leerness) []() []() []() []() []() []() []() []() []() []() []() []()
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
β βββ ββββββ ββββββ ββββββββββββββββββββββββ ββββββββ β
|
|
13
13
|
β βββββββββββββββββββββββββββ ββββββ ββββββββββββββββββββββ β
|
|
14
14
|
β βββββββββββββββββββββββββββ ββββββ βββββββββββββββββββββ β
|
|
15
|
-
β v1.9.
|
|
15
|
+
β v1.9.243 AI Agent Reliability Harness + Sandbox β
|
|
16
16
|
β verify Β· remember Β· orchestrate Β· audit Β· sandbox Β· drift β
|
|
17
|
-
β
|
|
17
|
+
β π CJK λΆλ₯ + session close --auto-fix-encoding (UR-0014 3) β
|
|
18
18
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
19
19
|
```
|
|
20
20
|
|
package/bin/harness.js
CHANGED
|
@@ -7,7 +7,7 @@ const cp = require('child_process');
|
|
|
7
7
|
const os = require('os'); // 1.9.178: _publishToNpm μμ os.tmpdir() μ¬μ© (μ μ import)
|
|
8
8
|
const readline = require('readline');
|
|
9
9
|
|
|
10
|
-
const VERSION = '1.9.
|
|
10
|
+
const VERSION = '1.9.243';
|
|
11
11
|
|
|
12
12
|
// 1.9.184: DEP0190 (child_process shell: true) deprecation warning μ΅μ (μ¬μ©μ λͺ
μ).
|
|
13
13
|
// leerness λ cross-platform PATH resolution μ μν΄ shell: true λ₯Ό μλμ μΌλ‘ μ¬μ© (claude.cmd / ollama.cmd λ± Windows .cmd μ²λ¦¬).
|
|
@@ -2308,7 +2308,7 @@ function agentModeCmd(root, sub) {
|
|
|
2308
2308
|
log('');
|
|
2309
2309
|
log(` start μ§μ
(handoff + drift --auto-fix + session-resume --auto-fix)`);
|
|
2310
2310
|
log(` tick λ§€ λΌμ΄λ (pulse + ν΅μ¬ μ νΈ)`);
|
|
2311
|
-
log(` stop λ§κ° (session close --auto-apply-delivered --auto-cleanup-branches)`);
|
|
2311
|
+
log(` stop λ§κ° (session close --auto-apply-delivered --auto-cleanup-branches --auto-fix-encoding)`);
|
|
2312
2312
|
log('');
|
|
2313
2313
|
log(dm(` μ¬μ©μ λͺ
μ UR-0013 (Python + agent-mode ν¨μ¨ν)`));
|
|
2314
2314
|
return;
|
|
@@ -2337,8 +2337,8 @@ function agentModeCmd(root, sub) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
if (sub === 'stop') {
|
|
2339
2339
|
log(cy(`# leerness agent-mode stop (1.9.239) β ν΅ν© λ§κ°`));
|
|
2340
|
-
log(dm(` β session close --auto-apply-delivered --auto-cleanup-branches`));
|
|
2341
|
-
const r = spawnChild(['session', 'close', root, '--auto-apply-delivered', '--auto-cleanup-branches']);
|
|
2340
|
+
log(dm(` β session close --auto-apply-delivered --auto-cleanup-branches --auto-fix-encoding`));
|
|
2341
|
+
const r = spawnChild(['session', 'close', root, '--auto-apply-delivered', '--auto-cleanup-branches', '--auto-fix-encoding']);
|
|
2342
2342
|
process.stdout.write(r.stdout || '');
|
|
2343
2343
|
return;
|
|
2344
2344
|
}
|
|
@@ -2442,6 +2442,35 @@ function _collectRuntimeEnv() {
|
|
|
2442
2442
|
// μν μκ·Έλ: νκ΅μ΄ (λλ λΉ-ASCII) λ¬Έμ + BOM μμ + Windows νκ²½
|
|
2443
2443
|
function _scanShellScriptsEncoding(root) {
|
|
2444
2444
|
const result = { scanned: 0, atRisk: [], notes: [] };
|
|
2445
|
+
// 1.9.243: CJK λΆλ₯ β Korean/Japanese/Chinese λΉ-ASCII ν¨ν΄ ν΅κ³ (UR-0014 3λ¨κ³)
|
|
2446
|
+
function _classifyCJK(buf, len) {
|
|
2447
|
+
let korean = 0, japanese = 0, chinese = 0, other = 0;
|
|
2448
|
+
for (let i = 0; i < Math.min(buf.length, len); i++) {
|
|
2449
|
+
const b = buf[i];
|
|
2450
|
+
if (b < 0x80) continue;
|
|
2451
|
+
// UTF-8 3-byte μνμ€ μμ λ°μ΄νΈ λΆλ₯
|
|
2452
|
+
// Korean Hangul Syllables U+AC00-D7AF β 3-byte: EA B0 80 ~ ED 9F BF
|
|
2453
|
+
if (b >= 0xEA && b <= 0xED) korean++;
|
|
2454
|
+
// Japanese Hiragana/Katakana U+3040-30FF β 3-byte: E3 81 80 ~ E3 83 BF
|
|
2455
|
+
else if (b === 0xE3) japanese++;
|
|
2456
|
+
// CJK Unified Ideographs U+4E00-9FFF β 3-byte: E4 B8 80 ~ E9 BF BF
|
|
2457
|
+
else if (b >= 0xE4 && b <= 0xE9) chinese++;
|
|
2458
|
+
else other++;
|
|
2459
|
+
}
|
|
2460
|
+
return { korean, japanese, chinese, other };
|
|
2461
|
+
}
|
|
2462
|
+
function _riskLabel(cjk) {
|
|
2463
|
+
if (cjk.korean >= cjk.japanese && cjk.korean >= cjk.chinese && cjk.korean > 0) {
|
|
2464
|
+
return { type: 'korean', risk: 'Windows νκ΅μ΄ PowerShell μμ CP949 λ‘ μ€μΈμ κ°λ₯ (BOM μΆκ° κΆμ₯)' };
|
|
2465
|
+
}
|
|
2466
|
+
if (cjk.japanese > cjk.korean && cjk.japanese >= cjk.chinese) {
|
|
2467
|
+
return { type: 'japanese', risk: 'Windows μΌλ³Έμ΄ PowerShell μμ CP932 (Shift-JIS) λ‘ μ€μΈμ κ°λ₯ (BOM μΆκ° κΆμ₯)' };
|
|
2468
|
+
}
|
|
2469
|
+
if (cjk.chinese > 0) {
|
|
2470
|
+
return { type: 'chinese', risk: 'Windows μ€κ΅μ΄ PowerShell μμ CP936 (GBK) λ‘ μ€μΈμ κ°λ₯ (BOM μΆκ° κΆμ₯)' };
|
|
2471
|
+
}
|
|
2472
|
+
return { type: 'non-ascii', risk: 'Windows λΉ-ASCII μ
Έ μ€ν¬λ¦½νΈ β BOM μλ UTF-8 μΈμ½λ© μ€μΈμ κ°λ₯ (BOM μΆκ° κΆμ₯)' };
|
|
2473
|
+
}
|
|
2445
2474
|
function walk(dir, depth = 0) {
|
|
2446
2475
|
if (depth > 3) return; // λ무 κΉμ΄ λ€μ΄κ°μ§ μμ
|
|
2447
2476
|
let entries;
|
|
@@ -2462,12 +2491,17 @@ function _scanShellScriptsEncoding(root) {
|
|
|
2462
2491
|
if (buf[i] >= 0x80) { nonAscii = true; break; }
|
|
2463
2492
|
}
|
|
2464
2493
|
if (nonAscii && !hasBOM) {
|
|
2494
|
+
// 1.9.243: CJK λΆλ₯ μΆκ°
|
|
2495
|
+
const cjk = _classifyCJK(buf, 4096);
|
|
2496
|
+
const label = _riskLabel(cjk);
|
|
2465
2497
|
result.atRisk.push({
|
|
2466
2498
|
file: path.relative(root, fp),
|
|
2467
2499
|
ext: path.extname(fp),
|
|
2468
2500
|
hasBOM: false,
|
|
2469
2501
|
nonAscii: true,
|
|
2470
|
-
|
|
2502
|
+
riskType: label.type,
|
|
2503
|
+
cjk,
|
|
2504
|
+
risk: label.risk
|
|
2471
2505
|
});
|
|
2472
2506
|
}
|
|
2473
2507
|
} catch {}
|
|
@@ -2478,6 +2512,9 @@ function _scanShellScriptsEncoding(root) {
|
|
|
2478
2512
|
if (result.atRisk.length > 0) {
|
|
2479
2513
|
result.notes.push('ν΄κ²°: νμΌ μμμ UTF-8 BOM μΆκ° (EF BB BF) λλ .ps1 첫 μ€μ $OutputEncoding/[Console]::OutputEncoding μ€μ ');
|
|
2480
2514
|
}
|
|
2515
|
+
// 1.9.243: λΆλ₯λ³ ν΅κ³ μμ½
|
|
2516
|
+
const types = result.atRisk.reduce((m, r) => { m[r.riskType] = (m[r.riskType] || 0) + 1; return m; }, {});
|
|
2517
|
+
result.riskTypeCounts = types;
|
|
2481
2518
|
return result;
|
|
2482
2519
|
}
|
|
2483
2520
|
|
|
@@ -6948,8 +6985,13 @@ function handoff(root) {
|
|
|
6948
6985
|
log(dm5(` ${r.risk}`));
|
|
6949
6986
|
});
|
|
6950
6987
|
if (scan.atRisk.length > 3) log(dm5(` ... +${scan.atRisk.length - 3}건 λ`));
|
|
6988
|
+
// 1.9.243: CJK λΆλ₯ μμ½ (UR-0014 3λ¨κ³)
|
|
6989
|
+
const types = scan.riskTypeCounts || {};
|
|
6990
|
+
const tList = Object.entries(types).filter(([_, c]) => c > 0).map(([t, c]) => `${t}=${c}`);
|
|
6991
|
+
if (tList.length > 0) log(dm5(` λΆλ₯: ${tList.join(', ')} (1.9.243 CJK)`));
|
|
6951
6992
|
log(dm5(` β μμΈ: leerness env encoding`));
|
|
6952
|
-
log(dm5(` β
|
|
6993
|
+
log(dm5(` β μλ ν볡: leerness env encoding --apply (UTF-8 BOM μλ μΆκ°, 1.9.242)`));
|
|
6994
|
+
log(dm5(` β λ§κ° μ μλ: session close --auto-fix-encoding (1.9.243)`));
|
|
6953
6995
|
}
|
|
6954
6996
|
} catch {}
|
|
6955
6997
|
|
|
@@ -10967,6 +11009,31 @@ function sessionClose(root, opts = {}) {
|
|
|
10967
11009
|
}
|
|
10968
11010
|
}
|
|
10969
11011
|
} catch {}
|
|
11012
|
+
// 1.9.243: session close --auto-fix-encoding β μ
Έ μ€ν¬λ¦½νΈ μΈμ½λ© μν μλ ν볡 (UR-0014 3λ¨κ³)
|
|
11013
|
+
// 1.9.224 (--auto-apply-delivered) / 1.9.237 (--auto-cleanup-branches) ν¨ν΄ νμ₯
|
|
11014
|
+
// λ§κ° μ νκ΅μ΄/μΌλ³Έμ΄/μ€κ΅μ΄ PowerShell μΈμ½λ© μν μλ BOM μΆκ°
|
|
11015
|
+
try {
|
|
11016
|
+
const encScan = _scanShellScriptsEncoding(root);
|
|
11017
|
+
if (encScan.atRisk && encScan.atRisk.length > 0) {
|
|
11018
|
+
if (has('--auto-fix-encoding')) {
|
|
11019
|
+
let ok = 0;
|
|
11020
|
+
for (const r of encScan.atRisk) {
|
|
11021
|
+
try {
|
|
11022
|
+
const fullPath = path.join(root, r.file);
|
|
11023
|
+
const orig = fs.readFileSync(fullPath);
|
|
11024
|
+
const bom = Buffer.from([0xEF, 0xBB, 0xBF]);
|
|
11025
|
+
const fixed = Buffer.concat([bom, orig]);
|
|
11026
|
+
fs.writeFileSync(fullPath, fixed);
|
|
11027
|
+
ok++;
|
|
11028
|
+
} catch {}
|
|
11029
|
+
}
|
|
11030
|
+
log(grn(` β μΈμ½λ© μν ${ok}/${encScan.atRisk.length}건 UTF-8 BOM μλ μΆκ° (--auto-fix-encoding 1.9.243)`));
|
|
11031
|
+
} else {
|
|
11032
|
+
log(yel(` β μ
Έ μ€ν¬λ¦½νΈ μΈμ½λ© μν ${encScan.atRisk.length}건 (1.9.241) β μλ ν볡 κ°λ₯`));
|
|
11033
|
+
log(dim(` β leerness env encoding --apply (μλ) λλ session close --auto-fix-encoding (1.9.243 μλ)`));
|
|
11034
|
+
}
|
|
11035
|
+
}
|
|
11036
|
+
} catch {}
|
|
10970
11037
|
// 1.9.232: λ§κ° μ pulse ν μ€ μλ λ
ΈμΆ β λ€μ λΌμ΄λ μ§μ
μ μ¦μ μν μΈμ§
|
|
10971
11038
|
try {
|
|
10972
11039
|
const rh = _computeRoundHistory(root);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leerness",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.243",
|
|
4
4
|
"description": "Leerness: λΉνκ΄΄ λ§μ΄κ·Έλ μ΄μ
, μλ λ²μ κ°μ§Β·μ
λ°μ΄νΈ, κ³ν/μ§ν/νΈλμ€ν μλν, κ²μΌλ¦Β·μν¬λ¦ΏΒ·μΈμ½λ© μλ κ°λ, Claude Code μ¬λμ ν΅ν©μ κ°μΆ νκ΅μ΄ μ°μ AI κ°λ° νλ€μ€.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"leerness",
|