leerness 1.9.234 β 1.9.235
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 +34 -0
- package/README.md +3 -3
- package/bin/harness.js +93 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.235 β 2026-05-23
|
|
4
|
+
|
|
5
|
+
**π leerness release cleanup CLI β local release/* branches μ 리 + --keep BUG fix.**
|
|
6
|
+
|
|
7
|
+
### 1. `leerness release cleanup` μ λͺ
λ Ή
|
|
8
|
+
- local `release/*` branches μ€ main μ mergeλ κ² μλ μ 리
|
|
9
|
+
- κΈ°λ³Έ dry-run (λͺ©λ‘λ§), `--apply` λͺ
μ μ μ€ μμ
|
|
10
|
+
- `--keep N` (default 5) β μ΅κ·Ό Nκ° μ μ§
|
|
11
|
+
- μμ κ°λ: merged λ§ μμ , unmerged 보νΈ, νμ¬ branch 보νΈ
|
|
12
|
+
- `--json` μ΅μ
|
|
13
|
+
|
|
14
|
+
### 2. μ€ μΈ‘μ β leerness μ체 λμ 191κ°
|
|
15
|
+
- merged: 191κ° / unmerged: 0κ°
|
|
16
|
+
- keep 5 β μμ ν보 186κ° (1.9.6~229)
|
|
17
|
+
- μ μ§: 1.9.234, 1.9.233, 1.9.232, 1.9.231, 1.9.230 (top 5 μ΅μ )
|
|
18
|
+
- handoff abnormal-shutdown `release-branch-pending` μ νΈ κ°μ€μΉ ν΄μ κ°λ₯
|
|
19
|
+
|
|
20
|
+
### 3. π `--keep` νλκ·Έ nonFlagArgs λ±λ‘ (BUG fix)
|
|
21
|
+
- κΈ°μ‘΄: `--keep 10`μ `10`μ΄ non-flag arg λ‘ μλͺ» λΆλ₯ β root μΈμ λ¨
|
|
22
|
+
- 1.9.235 fix: `withValue.Set` μ `--keep` μΆκ° β μ μ μΈμ
|
|
23
|
+
|
|
24
|
+
### 4. λμ νκ· (1.9.207~234) β λͺ¨λ μ μ§
|
|
25
|
+
|
|
26
|
+
### 5. stress-v180 β 16/16 PASS
|
|
27
|
+
- 1.9.235 (7): VERSION + dry-run + --keep + μ λ ¬ + μμ κ°λ + git fallback + human μΆλ ₯
|
|
28
|
+
- μ±λ₯ (2): cold_start avg 353ms / release cleanup 701ms
|
|
29
|
+
- λμ νκ· (7): 1.9.207~234
|
|
30
|
+
|
|
31
|
+
### 6. μλ release (97 λΌμ΄λ main-push streak Β· 58 λΌμ΄λ npm publish streak)
|
|
32
|
+
|
|
33
|
+
π **μ΄μ λμ μ 리 μμ€ν
** β 191 branches λμ β 5κ° μ μ§ κ°λ₯ (handoff μ νΈ ν΄μ)
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
3
37
|
## 1.9.234 β 2026-05-23
|
|
4
38
|
|
|
5
39
|
**π handoff/session close/health --json recentChanges ν΅ν© (8 νλ μμ±) β μΈλΆ AI μ΅κ·Ό 5 λΌμ΄λ μ¦μ μΈμ§.**
|
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) []() []() []() []() []() []() []() [-brightgreen)]() []() []() []()
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
β βββ ββββββ ββββββ ββββββββββββββββββββββββ ββββββββ β
|
|
13
13
|
β βββββββββββββββββββββββββββ ββββββ ββββββββββββββββββββββ β
|
|
14
14
|
β βββββββββββββββββββββββββββ ββββββ βββββββββββββββββββββ β
|
|
15
|
-
β v1.9.
|
|
15
|
+
β v1.9.235 AI Agent Reliability Harness + Sandbox β
|
|
16
16
|
β verify Β· remember Β· orchestrate Β· audit Β· sandbox Β· drift β
|
|
17
|
-
β
|
|
17
|
+
β π release cleanup Β· 191 branches λμ μ 리 + BUG fix β
|
|
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.235';
|
|
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 μ²λ¦¬).
|
|
@@ -180,7 +180,7 @@ function arg(name, def = null) { const i = process.argv.indexOf(name); return i
|
|
|
180
180
|
function has(name) { return process.argv.includes(name); }
|
|
181
181
|
function nonFlagArgs() {
|
|
182
182
|
const out = [];
|
|
183
|
-
const withValue = new Set(['--language','--skills','--path','--status','--progress','--goal','--reason','--next','--target','--token-env','--package','--out','--from','--repo','--id','--note','--evidence','--query','--limit','--action','--agent','--tool','--doc','--command','--capability','--before','--after','--display','--threshold','--trigger','--check','--set','--min-score','--include','--days','--gh-pages-src','--roadmap','--since','--agents','--model','--timeout','--retry-on-fail','--label','--score','--tokens','--alternatives','--impact','--tag','--surface','--depends-on','--affects','--co-changes-with','--files','--branch','--remote','--task-add','--next-action','--role','--provider','--env-var','--deploy','--token-lifetime-hours','--port','--secret']);
|
|
183
|
+
const withValue = new Set(['--language','--skills','--path','--status','--progress','--goal','--reason','--next','--target','--token-env','--package','--out','--from','--repo','--id','--note','--evidence','--query','--limit','--action','--agent','--tool','--doc','--command','--capability','--before','--after','--display','--threshold','--trigger','--check','--set','--min-score','--include','--days','--gh-pages-src','--roadmap','--since','--agents','--model','--timeout','--retry-on-fail','--label','--score','--tokens','--alternatives','--impact','--tag','--surface','--depends-on','--affects','--co-changes-with','--files','--branch','--remote','--task-add','--next-action','--role','--provider','--env-var','--deploy','--token-lifetime-hours','--port','--secret','--keep']);
|
|
184
184
|
const a = process.argv.slice(2);
|
|
185
185
|
for (let i = 0; i < a.length; i++) {
|
|
186
186
|
const x = a[i];
|
|
@@ -12156,6 +12156,95 @@ function releaseSyncMainCmd(root) {
|
|
|
12156
12156
|
}
|
|
12157
12157
|
}
|
|
12158
12158
|
|
|
12159
|
+
// 1.9.235: leerness release cleanup β local release/* branches μ 리 (main μ mergeλ κ²)
|
|
12160
|
+
// λ¬Έμ : λ§€ λΌμ΄λ release/X.Y.Z κ° λμ β handoff abnormal-shutdown release-branch-pending μ νΈ κ°μ€
|
|
12161
|
+
// κΈ°λ³Έ: dry-run (μμ ν보 νμ) Β· --apply λͺ
μ μ μ€ μμ Β· --keep N (μ΅κ·Ό Nκ° μ μ§, default 5)
|
|
12162
|
+
// μμ : main μ mergeλμ§ μμ branch λ μ λ μμ X Β· νμ¬ branch λ 보νΈ
|
|
12163
|
+
function releaseCleanupCmd(root) {
|
|
12164
|
+
root = absRoot(root || process.cwd());
|
|
12165
|
+
const isTty = process.stdout && process.stdout.isTTY;
|
|
12166
|
+
const cy = s => isTty ? `\x1b[36m${s}\x1b[0m` : s;
|
|
12167
|
+
const gr = s => isTty ? `\x1b[32m${s}\x1b[0m` : s;
|
|
12168
|
+
const yl = s => isTty ? `\x1b[33m${s}\x1b[0m` : s;
|
|
12169
|
+
const rd = s => isTty ? `\x1b[31m${s}\x1b[0m` : s;
|
|
12170
|
+
const dm = s => isTty ? `\x1b[2m${s}\x1b[0m` : s;
|
|
12171
|
+
const apply = has('--apply');
|
|
12172
|
+
const keep = parseInt(arg('--keep', '5'), 10) || 5;
|
|
12173
|
+
// 1) git μ μ₯μ νμΈ
|
|
12174
|
+
const headR = cp.spawnSync('git', ['rev-parse', '--abbrev-ref', 'HEAD'], { cwd: root, encoding: 'utf8' });
|
|
12175
|
+
if (headR.status !== 0) {
|
|
12176
|
+
log(rd('# leerness release cleanup (1.9.235) β git μ μ₯μ μλ'));
|
|
12177
|
+
return;
|
|
12178
|
+
}
|
|
12179
|
+
const currentBranch = (headR.stdout || '').trim();
|
|
12180
|
+
// 2) local release/* branches + merged μν νμ
|
|
12181
|
+
const branchR = cp.spawnSync('git', ['branch', '--merged', 'main', '--list', 'release/*'], { cwd: root, encoding: 'utf8' });
|
|
12182
|
+
const mergedBranches = (branchR.stdout || '').split('\n')
|
|
12183
|
+
.map(l => l.replace(/^\*?\s+/, '').trim())
|
|
12184
|
+
.filter(l => l && /^release\/\d+\.\d+\.\d+$/.test(l));
|
|
12185
|
+
// 3) λͺ¨λ release/* λ νμ (unmerged λΆμμ©)
|
|
12186
|
+
const allR = cp.spawnSync('git', ['branch', '--list', 'release/*'], { cwd: root, encoding: 'utf8' });
|
|
12187
|
+
const allBranches = (allR.stdout || '').split('\n')
|
|
12188
|
+
.map(l => l.replace(/^\*?\s+/, '').trim())
|
|
12189
|
+
.filter(l => l && /^release\/\d+\.\d+\.\d+$/.test(l));
|
|
12190
|
+
const unmergedBranches = allBranches.filter(b => !mergedBranches.includes(b));
|
|
12191
|
+
// 4) μ λ ¬ (semver desc) + keep N + νμ¬ branch μ μΈ
|
|
12192
|
+
mergedBranches.sort((a, b) => {
|
|
12193
|
+
const va = a.replace('release/', '').split('.').map(n => parseInt(n, 10) || 0);
|
|
12194
|
+
const vb = b.replace('release/', '').split('.').map(n => parseInt(n, 10) || 0);
|
|
12195
|
+
for (let i = 0; i < 3; i++) if (va[i] !== vb[i]) return vb[i] - va[i];
|
|
12196
|
+
return 0;
|
|
12197
|
+
});
|
|
12198
|
+
const recent = mergedBranches.slice(0, keep);
|
|
12199
|
+
const toDelete = mergedBranches.slice(keep).filter(b => b !== currentBranch);
|
|
12200
|
+
// 5) JSON
|
|
12201
|
+
if (has('--json')) {
|
|
12202
|
+
log(JSON.stringify({
|
|
12203
|
+
apply, keep, total: allBranches.length, merged: mergedBranches.length,
|
|
12204
|
+
unmerged: unmergedBranches.length, deleteCount: toDelete.length,
|
|
12205
|
+
toDelete, recent: recent.slice(0, keep), unmergedSample: unmergedBranches.slice(0, 5)
|
|
12206
|
+
}, null, 2));
|
|
12207
|
+
return;
|
|
12208
|
+
}
|
|
12209
|
+
// 6) Human μΆλ ₯
|
|
12210
|
+
log(cy(`# leerness release cleanup (1.9.235) β local release/* branches μ 리`));
|
|
12211
|
+
log('');
|
|
12212
|
+
log(` π μ΄ ${allBranches.length}κ° Β· merged ${mergedBranches.length}κ° Β· unmerged ${unmergedBranches.length}κ°`);
|
|
12213
|
+
log(` π νμ¬ branch: ${currentBranch}${currentBranch.startsWith('release/') ? yl(' (보νΈ)') : ''}`);
|
|
12214
|
+
log(` π‘ keep μ΅κ·Ό ${keep}κ° μ μ§`);
|
|
12215
|
+
log('');
|
|
12216
|
+
if (toDelete.length === 0) {
|
|
12217
|
+
log(gr(` β μ 리 λμ μμ (merged ${mergedBranches.length} β€ keep ${keep})`));
|
|
12218
|
+
if (unmergedBranches.length > 0) {
|
|
12219
|
+
log('');
|
|
12220
|
+
log(yl(` β unmerged ${unmergedBranches.length}κ° β sync-main λ―Έμ§ν. μ 리 λμ μλ:`));
|
|
12221
|
+
unmergedBranches.slice(0, 5).forEach(b => log(` β’ ${b}`));
|
|
12222
|
+
if (unmergedBranches.length > 5) log(dm(` ... +${unmergedBranches.length - 5}κ°`));
|
|
12223
|
+
}
|
|
12224
|
+
return;
|
|
12225
|
+
}
|
|
12226
|
+
log(yl(` π μμ ν보 ${toDelete.length}κ° (merged + keep λ²μ μΈ):`));
|
|
12227
|
+
toDelete.slice(0, 10).forEach(b => log(` β’ ${b}`));
|
|
12228
|
+
if (toDelete.length > 10) log(dm(` ... +${toDelete.length - 10}κ°`));
|
|
12229
|
+
log('');
|
|
12230
|
+
log(` π μ μ§ ${recent.length}κ°:`);
|
|
12231
|
+
recent.slice(0, 5).forEach(b => log(` β ${b}`));
|
|
12232
|
+
if (recent.length > 5) log(dm(` ... +${recent.length - 5}κ°`));
|
|
12233
|
+
log('');
|
|
12234
|
+
if (apply) {
|
|
12235
|
+
let ok = 0, fail = 0;
|
|
12236
|
+
for (const b of toDelete) {
|
|
12237
|
+
const r = cp.spawnSync('git', ['branch', '-d', b], { cwd: root, encoding: 'utf8' });
|
|
12238
|
+
if (r.status === 0) ok++;
|
|
12239
|
+
else fail++;
|
|
12240
|
+
}
|
|
12241
|
+
log(gr(` β μμ μλ£: ${ok}/${toDelete.length}건`) + (fail > 0 ? rd(` Β· μ€ν¨ ${fail}`) : ''));
|
|
12242
|
+
} else {
|
|
12243
|
+
log(dm(` β μ μ©: leerness release cleanup --apply (μμ : mergedλ§ μμ , νμ¬ branch 보νΈ)`));
|
|
12244
|
+
log(dm(` β --keep N: μ΅κ·Ό Nκ° μ μ§ (default 5)`));
|
|
12245
|
+
}
|
|
12246
|
+
}
|
|
12247
|
+
|
|
12159
12248
|
// 1.9.178: NPM μλ λ°°ν¬ (μ¬μ©μ λͺ
μ β release sync-main ν μλ trigger).
|
|
12160
12249
|
// 보μ:
|
|
12161
12250
|
// - NPM_TOKEN λλ LEERNESS_NPM_TOKEN νκ²½λ³μμμλ§ μ½μ (κ° μ λ λ‘κ·Έ X)
|
|
@@ -18248,6 +18337,8 @@ async function main() {
|
|
|
18248
18337
|
if (cmd === 'release' && args[1] === 'publish') return releasePublish(args[2] || arg('--path', process.cwd()));
|
|
18249
18338
|
if (cmd === 'release' && args[1] === 'pack') return await releasePackCmd(args[2] || arg('--path', process.cwd()));
|
|
18250
18339
|
if (cmd === 'release' && args[1] === 'sync-main') return releaseSyncMainCmd(args[2] || arg('--path', process.cwd()));
|
|
18340
|
+
// 1.9.235: leerness release cleanup β local release/* branches μ 리 (merged λ§, --apply μ μ€ μμ )
|
|
18341
|
+
if (cmd === 'release' && args[1] === 'cleanup') return releaseCleanupCmd((args[2] && !args[2].startsWith('-')) ? args[2] : arg('--path', process.cwd()));
|
|
18251
18342
|
// 1.9.141: feature causality graph
|
|
18252
18343
|
if (cmd === 'feature' && args[1] === 'add') return featureAddCmd(arg('--path', process.cwd()), args.slice(2).filter(x => !x.startsWith('--')).join(' '));
|
|
18253
18344
|
if (cmd === 'feature' && args[1] === 'link') return featureLinkCmd(arg('--path', process.cwd()), args[2]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leerness",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.235",
|
|
4
4
|
"description": "Leerness: λΉνκ΄΄ λ§μ΄κ·Έλ μ΄μ
, μλ λ²μ κ°μ§Β·μ
λ°μ΄νΈ, κ³ν/μ§ν/νΈλμ€ν μλν, κ²μΌλ¦Β·μν¬λ¦ΏΒ·μΈμ½λ© μλ κ°λ, Claude Code μ¬λμ ν΅ν©μ κ°μΆ νκ΅μ΄ μ°μ AI κ°λ° νλ€μ€.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"leerness",
|