leerness 1.9.235 β†’ 1.9.236

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,41 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.236 β€” 2026-05-24
4
+
5
+ **πŸ”Œ MCP 66번째 도ꡬ (release_cleanup) + drift check --auto-fix 톡합 (50+ branches μžλ™ 정리).**
6
+
7
+ ### 1. MCP 66번째 도ꡬ β€” `leerness_release_cleanup`
8
+ - 1.9.235 release cleanup CLI λ₯Ό μ™ΈλΆ€ AI 에 λ…ΈμΆœ
9
+ - 인자: `{ path?, apply? (default false), keep? (default 5) }`
10
+ - 응닡: `{ apply, keep, total, merged, unmerged, deleteCount, toDelete[], recent[], unmergedSample[] }`
11
+ - MCP 65 β†’ **66** (+1)
12
+
13
+ ### 2. `drift check --auto-fix` release cleanup 톡합 (1.9.82/225 νŒ¨ν„΄ ν™•μž₯)
14
+ - merged `release/*` branches 50개 초과 μ‹œ μžλ™ 정리
15
+ - μ•ˆμ „: keep 10 (졜근 10개 μœ μ§€), merged 만 μ‚­μ œ (unmerged 보호)
16
+ - 1.9.82 audit --fix β†’ 1.9.225 delivered β†’ 1.9.236 release cleanup (3 λΌμš΄λ“œ λˆ„μ )
17
+
18
+ ### 3. drift 회볡 μ‹œμŠ€ν…œ ν™•μž₯ 맀트릭슀 (4 μžλ™ 회볡 톡합)
19
+ | λΌμš΄λ“œ | μ‹ ν˜Έ | μžλ™ 회볡 |
20
+ |---|---|---|
21
+ | 1.9.39 | critical | session close μžλ™ |
22
+ | 1.9.82 | λ³΄μ•ˆ | audit --fix |
23
+ | 1.9.225 | delivered | requests μžλ™ μ™„λ£Œ |
24
+ | **1.9.236** | **release-branch** | **release cleanup --keep 10** ⭐ |
25
+
26
+ ### 4. λˆ„μ  νšŒκ·€ (1.9.207~235) β€” λͺ¨λ‘ μœ μ§€
27
+
28
+ ### 5. stress-v181 β€” 15/15 PASS
29
+ - 1.9.236 (5): VERSION + MCP 66 등둝 + μ‹€ 호좜 + keep νŒŒλΌλ―Έν„° + drift 톡합 μ½”λ“œ
30
+ - μ„±λŠ₯ (2): cold_start avg 389ms / MCP 66 tools/list 363ms
31
+ - λˆ„μ  νšŒκ·€ (8): 1.9.207~235
32
+
33
+ ### 6. μžλ™ release (98 λΌμš΄λ“œ main-push streak Β· 59 λΌμš΄λ“œ npm publish streak)
34
+
35
+ πŸ”Œ **drift μžλ™ 회볡 4 톡합** β€” leerness κ°€ 슀슀둜 λˆ„μ  폐기물 정리
36
+
37
+ ---
38
+
3
39
  ## 1.9.235 β€” 2026-05-23
4
40
 
5
41
  **πŸ—‘ leerness release cleanup CLI β€” local release/* branches 정리 + --keep BUG fix.**
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **AI μ½”λ”© μ—μ΄μ „νŠΈμ˜ κ±°μ§“ μ™„λ£ŒΒ·μ€‘λ³΅Β·λ§κ°Β·μΆ©λŒμ„ λ§‰μ•„μ£ΌλŠ” κ²€μˆ˜Β·κΈ°μ–΅Β·ν˜‘μ—… CLI ν•˜λ„€μŠ€.**
4
4
 
5
- [![npm](https://img.shields.io/badge/npm-leerness-blue)](https://www.npmjs.com/package/leerness) [![version](https://img.shields.io/badge/version-1.9.235-green)]() [![tests](https://img.shields.io/badge/e2e-217%2F217-success)]() [![stress](https://img.shields.io/badge/stress--v180-16%2F16-success)]() [![mcp](https://img.shields.io/badge/MCP--tools-65-brightgreen)]() [![cli](https://img.shields.io/badge/CLI_commands-52-brightgreen)]() [![rounds](https://img.shields.io/badge/autonomous--rounds-191-blueviolet)]() [![main-push](https://img.shields.io/badge/release--main--push-97_rounds-success)]() [![goal-matrix](https://img.shields.io/badge/λͺ©μ _맀트릭슀-100%2F100_(5μΆ•)-brightgreen)]() [![cleanup](https://img.shields.io/badge/πŸ—‘_release-cleanup_CLI-blueviolet)]() [![perf](https://img.shields.io/badge/cold_start-353ms-success)]() [![license](https://img.shields.io/badge/license-MIT-lightgrey)]()
5
+ [![npm](https://img.shields.io/badge/npm-leerness-blue)](https://www.npmjs.com/package/leerness) [![version](https://img.shields.io/badge/version-1.9.236-green)]() [![tests](https://img.shields.io/badge/e2e-217%2F217-success)]() [![stress](https://img.shields.io/badge/stress--v181-15%2F15-success)]() [![mcp](https://img.shields.io/badge/MCP--tools-66-brightgreen)]() [![cli](https://img.shields.io/badge/CLI_commands-52-brightgreen)]() [![rounds](https://img.shields.io/badge/autonomous--rounds-192-blueviolet)]() [![main-push](https://img.shields.io/badge/release--main--push-98_rounds-success)]() [![goal-matrix](https://img.shields.io/badge/λͺ©μ _맀트릭슀-100%2F100_(5μΆ•)-brightgreen)]() [![drift-recovery](https://img.shields.io/badge/πŸ”Œ_drift--auto--fix-4_톡합-blueviolet)]() [![perf](https://img.shields.io/badge/cold_start-389ms-success)]() [![license](https://img.shields.io/badge/license-MIT-lightgrey)]()
6
6
 
7
7
  ```
8
8
  ╔══════════════════════════════════════════════════════════════╗
@@ -12,9 +12,9 @@
12
12
  β•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β• β•šβ•β•β•β•β–ˆβ–ˆβ•‘ β•‘
13
13
  β•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘ β•‘
14
14
  β•‘ β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β•β•šβ•β• β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β• β•‘
15
- β•‘ v1.9.235 AI Agent Reliability Harness + Sandbox β•‘
15
+ β•‘ v1.9.236 AI Agent Reliability Harness + Sandbox β•‘
16
16
  β•‘ verify Β· remember Β· orchestrate Β· audit Β· sandbox Β· drift β•‘
17
- β•‘ πŸ—‘ release cleanup Β· 191 branches λˆ„μ  정리 + BUG fix β•‘
17
+ β•‘ πŸ”Œ MCP 66 Β· drift --auto-fix 4 톡합 (release cleanup) β•‘
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.235';
10
+ const VERSION = '1.9.236';
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 처리).
@@ -13480,6 +13480,42 @@ function driftCheckCmd(root, opts = {}) {
13480
13480
  log(`⚠ delivered auto-apply 였λ₯˜ (1.9.225): ${e.message}`);
13481
13481
  }
13482
13482
  }
13483
+ // 1.9.236: drift check --auto-fix 에 release cleanup 톡합 (1.9.235 회수)
13484
+ // λˆ„μ λœ 50개+ release/* branches β†’ abnormal-shutdown release-branch-pending μ‹ ν˜Έ 가쀑
13485
+ // μ•ˆμ „: keep 10 (졜근 10개 μœ μ§€), merged 만 μ‚­μ œ (1.9.235 μ•ˆμ „ κ°€λ“œ)
13486
+ // μž„κ³„: 50개 초과 μ‹œλ§Œ μžλ™ 정리 (μ†ŒλŸ‰ λˆ„μ μ€ 정상 운영)
13487
+ if (autoFix) {
13488
+ try {
13489
+ const branchR = cp.spawnSync('git', ['branch', '--merged', 'main', '--list', 'release/*'], { cwd: root, encoding: 'utf8' });
13490
+ if (branchR.status === 0) {
13491
+ const merged = (branchR.stdout || '').split('\n')
13492
+ .map(l => l.replace(/^\*?\s+/, '').trim())
13493
+ .filter(l => l && /^release\/\d+\.\d+\.\d+$/.test(l));
13494
+ if (merged.length > 50) {
13495
+ log('');
13496
+ log(`πŸ—‘ --auto-fix ν™œμ„± (1.9.236) β€” release/* merged ${merged.length}개 (50+) μžλ™ 정리 (keep 10)...`);
13497
+ // μ •λ ¬ (semver desc)
13498
+ merged.sort((a, b) => {
13499
+ const va = a.replace('release/', '').split('.').map(n => parseInt(n, 10) || 0);
13500
+ const vb = b.replace('release/', '').split('.').map(n => parseInt(n, 10) || 0);
13501
+ for (let i = 0; i < 3; i++) if (va[i] !== vb[i]) return vb[i] - va[i];
13502
+ return 0;
13503
+ });
13504
+ const currentBranchR = cp.spawnSync('git', ['rev-parse', '--abbrev-ref', 'HEAD'], { cwd: root, encoding: 'utf8' });
13505
+ const currentBranch = (currentBranchR.stdout || '').trim();
13506
+ const toDelete = merged.slice(10).filter(b => b !== currentBranch);
13507
+ let ok = 0;
13508
+ for (const b of toDelete) {
13509
+ const r = cp.spawnSync('git', ['branch', '-d', b], { cwd: root, encoding: 'utf8' });
13510
+ if (r.status === 0) ok++;
13511
+ }
13512
+ log(`βœ“ release cleanup μžλ™ μ™„λ£Œ ${ok}/${toDelete.length}건 (keep 10)`);
13513
+ }
13514
+ }
13515
+ } catch (e) {
13516
+ log(`⚠ release cleanup auto-fix 였λ₯˜ (1.9.236): ${e.message}`);
13517
+ }
13518
+ }
13483
13519
  if (autoFix && level === 'πŸ”΄ critical' && !hasSecurityFired) {
13484
13520
  log('');
13485
13521
  log(`πŸ”§ --auto-fix ν™œμ„± β€” session close μžλ™ μ‹€ν–‰ 쀑...`);
@@ -14468,7 +14504,8 @@ function mcpServeCmd(root) {
14468
14504
  { name: 'leerness_round_history', description: '1.9.226 β€” 자율 λΌμš΄λ“œ 톡계. git tag v1.9.X 기반 λˆ„μ  λΌμš΄λ“œ 카운트 + λ‹€μŒ λ§ˆμΌμŠ€ν†€ (50/75/100/125/150/175/200/250/300/400/500) + 평균 rounds/day. 응닡: { currentVersion, roundCount, baselineVersion, latestTags[], nextMilestone, roundsToNextMilestone, firstTagAt, latestTagAt, daysActive, avgRoundsPerDay }. μ™ΈλΆ€ AIκ°€ "이 ν”„λ‘œμ νŠΈλŠ” μ–Όλ§ˆλ‚˜ 진행됐고 λ‹€μŒ λ§ˆμΌμŠ€ν†€κΉŒμ§€ λͺ‡ λΌμš΄λ“œ λ‚¨μ•˜λ‚˜?"λ₯Ό 회수. 인자: { path? }', inputSchema: { type: 'object', properties: { path: { type: 'string' } } } },
14469
14505
  { name: 'leerness_milestones', description: '1.9.229 (1.9.226 ν™•μž₯) β€” 도달 λ§ˆμΌμŠ€ν†€ + λ‹€μŒ ETA. git tag 순차 λΆ„μ„μœΌλ‘œ 25/50/75/100/125/150/175/200/250/300/400/500 λ§ˆμΌμŠ€ν†€ 도달 일자 + λ‹€μŒ λ§ˆμΌμŠ€ν†€ ETA (ν˜„μž¬ 속도 κΈ°μ€€) 계산. 응닡: { totalRounds, reached: [{milestone, version, reachedAt, daysFromBaseline}], next: {milestone, roundsRemaining, etaDays, etaDate}, baselineAt, avgRoundsPerDay }. μ™ΈλΆ€ AIκ°€ "μ§€κΈˆκΉŒμ§€ μ–΄λ–€ λ§ˆμΌμŠ€ν†€μ„ μ–Έμ œ λ‹¬μ„±ν–ˆκ³  λ‹€μŒ λ§ˆμΌμŠ€ν†€ μ˜ˆμƒ 도달일은?"을 회수. 인자: { path? }', inputSchema: { type: 'object', properties: { path: { type: 'string' } } } },
14470
14506
  { name: 'leerness_pulse', description: '1.9.231 β€” ν•œ 쀄 μ’…ν•© μš”μ•½ (10 핡심 μ§€ν‘œ). 응닡: { version, roundCount, mcpTools, memorySurface, security, health, driftScore, nextMilestone, etaDays, abnormalShutdown }. μ™ΈλΆ€ AIκ°€ "leerness μƒνƒœ ν•œ λˆˆμ— 보기"λ₯Ό κ°€λ²Όμš΄ 단일 호좜둜 회수. handoff 보닀 5λ°° 빠름 (drift/health 계산 skip). 인자: { path? }', inputSchema: { type: 'object', properties: { path: { type: 'string' } } } },
14471
- { name: 'leerness_commands', description: '1.9.233 β€” μΉ΄ν…Œκ³ λ¦¬ν™”λœ 전체 CLI λͺ…λ Ή λͺ©λ‘ (9 μΉ΄ν…Œκ³ λ¦¬). 응닡: { version, totalCommands, categories: { status, task, memory, audit, workflow, release, skill, bridge, config } }. μ™ΈλΆ€ AIκ°€ "leerness κ°€ μ œκ³΅ν•˜λŠ” λͺ…령이 뭐가 μžˆλ‚˜"λ₯Ό 직접 회수. 맀뉴얼/도움말 동적 생성. 인자: { path? }', inputSchema: { type: 'object', properties: { path: { type: 'string' } } } }
14507
+ { name: 'leerness_commands', description: '1.9.233 β€” μΉ΄ν…Œκ³ λ¦¬ν™”λœ 전체 CLI λͺ…λ Ή λͺ©λ‘ (9 μΉ΄ν…Œκ³ λ¦¬). 응닡: { version, totalCommands, categories: { status, task, memory, audit, workflow, release, skill, bridge, config } }. μ™ΈλΆ€ AIκ°€ "leerness κ°€ μ œκ³΅ν•˜λŠ” λͺ…령이 뭐가 μžˆλ‚˜"λ₯Ό 직접 회수. 맀뉴얼/도움말 동적 생성. 인자: { path? }', inputSchema: { type: 'object', properties: { path: { type: 'string' } } } },
14508
+ { name: 'leerness_release_cleanup', description: '1.9.236 (1.9.235 μžλ™ 회수) β€” local release/* branches 정리. main 에 merge된 κ²ƒλ§Œ 후보 (unmerged 보호, ν˜„μž¬ branch 보호). 응닡: { apply, keep, total, merged, unmerged, deleteCount, toDelete[], recent[], unmergedSample[] }. μ™ΈλΆ€ AIκ°€ "운영 λˆ„μ  release branches 정리 κ°€λŠ₯?"을 회수. κΈ°λ³Έ dry-run, apply: true μ‹œμ—λ§Œ μ‹€ μ‚­μ œ. 인자: { path?, apply? (default false), keep? (default 5) }', inputSchema: { type: 'object', properties: { path: { type: 'string' }, apply: { type: 'boolean' }, keep: { type: 'number' } } } }
14472
14509
  ];
14473
14510
 
14474
14511
  function send(obj) {
@@ -14645,6 +14682,12 @@ function mcpServeCmd(root) {
14645
14682
  // 1.9.233: μΉ΄ν…Œκ³ λ¦¬ν™”λœ 전체 CLI λͺ…λ Ή λͺ©λ‘
14646
14683
  cliArgs = ['commands', '--json'];
14647
14684
  break;
14685
+ case 'leerness_release_cleanup':
14686
+ // 1.9.236 (1.9.235): local release/* branches 정리
14687
+ cliArgs = ['release', 'cleanup', '--json'];
14688
+ if (args.apply === true) cliArgs.push('--apply');
14689
+ if (typeof args.keep === 'number') cliArgs.push('--keep', String(args.keep));
14690
+ break;
14648
14691
  default:
14649
14692
  return send({ jsonrpc: '2.0', id, error: { code: -32601, message: `Unknown tool: ${name}` } });
14650
14693
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leerness",
3
- "version": "1.9.235",
3
+ "version": "1.9.236",
4
4
  "description": "Leerness: λΉ„νŒŒκ΄΄ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜, μžλ™ 버전 κ°μ§€Β·μ—…λ°μ΄νŠΈ, κ³„νš/μ§„ν–‰/ν•Έλ“œμ˜€ν”„ μžλ™ν™”, κ²ŒμœΌλ¦„Β·μ‹œν¬λ¦ΏΒ·μΈμ½”λ”© μžλ™ κ°€λ“œ, Claude Code μŠ¬λž˜μ‹œ 톡합을 κ°–μΆ˜ ν•œκ΅­μ–΄ μš°μ„  AI 개발 ν•˜λ„€μŠ€.",
5
5
  "keywords": [
6
6
  "leerness",