leerness 1.9.437 → 1.9.438
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 +11 -0
- package/README.md +5 -5
- package/bin/leerness.js +8 -1
- package/lib/pure-utils.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.438 — 2026-06-08 — contract impl ESM re-export 인식 (11th 외부평가 Sonnet P3, UR-0139 완결)
|
|
4
|
+
|
|
5
|
+
**🧩 `export { default as X } from './m'` 재export 의 별칭 X 를 named export 로 인식.**
|
|
6
|
+
|
|
7
|
+
### 변경
|
|
8
|
+
- **`_parseImplExports` ESM 목록 파서**: `default as X` 는 별칭 X 가 named export 이므로 `as` 별칭을 먼저 채택(이전엔 `default` 시작이라 통째로 스킵 → contract verify false negative). `export { foo, bar as baz } from './x'` 도 정상. 단독 `export default`/`type X` 는 제외 유지. `export * from`(이름 정적 불가)은 미지원(문서화).
|
|
9
|
+
|
|
10
|
+
### 검증 (회귀 0)
|
|
11
|
+
- `export { default as getUserById } from` → `[getUserById]`; `foo, bar as baz` → `[foo,baz]`; 단독 default → `[]`; 일반 ESM 무회귀.
|
|
12
|
+
- **selftest 182→183 PASS** · **E2E 무회귀**. → UR-0139(AKIA placeholder + ESM re-export) 완결.
|
|
13
|
+
|
|
3
14
|
## 1.9.437 — 2026-06-08 — --json 에러 전역화: unknown command + 무효 choice (11th 외부평가 Codex P2/P3, UR-0138)
|
|
4
15
|
|
|
5
16
|
**📐 자동화(CI/MCP)가 모든 에러 경로를 JSON.parse 할 수 있도록 중앙 에러 2종을 순수 JSON 화.**
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> **AI 코딩 에이전트의 거짓 완료·중복·망각·충돌을 막아주는 검수·기억·협업 CLI 하네스.**
|
|
4
4
|
> **A CLI harness that stops AI coding agents from faking completion, duplicating work, forgetting context, and colliding.**
|
|
5
5
|
|
|
6
|
-
[](https://www.npmjs.com/package/leerness) [](https://www.npmjs.com/package/leerness) []() []() []() []() []() []()
|
|
7
7
|
|
|
8
8
|
```
|
|
9
9
|
╔══════════════════════════════════════════════════════════════╗
|
|
@@ -471,7 +471,7 @@ MIT — © leerness contributors
|
|
|
471
471
|
<!-- leerness:project-readme:start -->
|
|
472
472
|
## Leerness Project Harness
|
|
473
473
|
|
|
474
|
-
이 프로젝트는 Leerness v1.9.
|
|
474
|
+
이 프로젝트는 Leerness v1.9.438 하네스를 사용합니다. AI 에이전트는 작업 전 `leerness handoff`로 컨텍스트를 적재하고, 작업 후 `leerness check`/`leerness audit`/`leerness session close`를 수행해야 합니다.
|
|
475
475
|
|
|
476
476
|
### 정체성 — AI 에이전트 운영 레이어 (UR-0030)
|
|
477
477
|
|
|
@@ -525,7 +525,7 @@ leerness memory restore decision <date|title>
|
|
|
525
525
|
|
|
526
526
|
### MCP server (외부 AI 통합)
|
|
527
527
|
|
|
528
|
-
Leerness v1.9.
|
|
528
|
+
Leerness v1.9.438는 stdio JSON-RPC MCP server를 내장합니다 — Claude Code · Cursor · Codex CLI 등 외부 AI에 **85개 도구**를 노출:
|
|
529
529
|
|
|
530
530
|
```jsonc
|
|
531
531
|
// 카테고리별
|
|
@@ -546,7 +546,7 @@ Leerness v1.9.437는 stdio JSON-RPC MCP server를 내장합니다 — Claude Cod
|
|
|
546
546
|
`<<autonomous-loop-dynamic>>` 신호만 보내면 AI가:
|
|
547
547
|
1) 다음 라운드 후보 선정 → 2) 코드 변경 → 3) stress-v* 신규 작성 + 누적 회귀 → 4) e2e 219/219 → 5) npm pack + git tag + GitHub release → 6) main 자동 push (1.9.140+) → 7) session close → 8) 다음 라운드 예약.
|
|
548
548
|
|
|
549
|
-
현재 누적: **70 라운드 (1.9.40 → 1.9.
|
|
549
|
+
현재 누적: **70 라운드 (1.9.40 → 1.9.438)** · 매 라운드 GitHub release/태그 생성 · _reports/는 비공개 보존.
|
|
550
550
|
|
|
551
551
|
### 성능 가이드 (1.9.140 측정)
|
|
552
552
|
|
|
@@ -584,6 +584,6 @@ leerness release pack --close --auto-main-push
|
|
|
584
584
|
- `.harness/session-handoff.md`: 다음 세션 인수인계 (자동 작성)
|
|
585
585
|
- `.harness/lessons.md` / `decisions.md` / `rules.md`: 영구 메모리 (5 surface)
|
|
586
586
|
|
|
587
|
-
Last synced by Leerness v1.9.
|
|
587
|
+
Last synced by Leerness v1.9.438: 2026-06-07
|
|
588
588
|
<!-- leerness:project-readme:end -->
|
|
589
589
|
|
package/bin/leerness.js
CHANGED
|
@@ -31,7 +31,7 @@ const { _evidenceQuality, _parseEvidenceStats, _shellGuardAnalyze, _claimFileInG
|
|
|
31
31
|
// 1.9.295 (UR-0025 4단계): 정적 데이터 카탈로그 모듈 분리 (비파괴, require-based).
|
|
32
32
|
const { CAPABILITY_SURFACE, POWERFUL_COMMANDS, ADAPTERS, REUSE_CATEGORIES, REUSE_CHECKLIST, _DEFAULT_PLATFORM_CONSTRAINTS, _DEFAULT_DOMAIN_CATALOG, _LSP_LANG_PATTERNS, OPTIMISM_PATTERNS, BUILT_IN_PERSONAS, STRINGS, BUILTIN_CATALOG, ROADMAP_STATUS_LABEL, ROADMAP_STATUS_COLOR, SECRET_PATTERNS, MERGE_OVERWRITE_FILES, MINIMAL_SKIP_KEYS, REQUIRED_WORKSPACE_FILES, KEYWORD_STOPWORDS, SKILL_CATALOG_PRESETS } = require('../lib/catalogs'); // 1.9.344/368/369 (UR-0025): catalog 분리 (MERGE_OVERWRITE_FILES/MINIMAL_SKIP_KEYS 포함)
|
|
33
33
|
|
|
34
|
-
const VERSION = '1.9.
|
|
34
|
+
const VERSION = '1.9.438';
|
|
35
35
|
|
|
36
36
|
// 1.9.290 (UR-0037, Codex gpt-5.5 #4 수렴): CLI 전용 부작용은 require 시 실행하지 않는다.
|
|
37
37
|
// 이전: warning listener 제거 / NODE_OPTIONS 변경 / chcp IIFE 가 top-level 즉시 실행 → require('harness') 시 호스트 프로세스 오염.
|
|
@@ -3284,6 +3284,13 @@ function _selfTestCases() {
|
|
|
3284
3284
|
const choiceJson = src.includes("failJson(has('--json'), 'invalid_choice'");
|
|
3285
3285
|
return unknownJson && choiceJson;
|
|
3286
3286
|
} },
|
|
3287
|
+
{ name: '11th 외부평가 Sonnet P3 (UR-0139): contract impl ESM re-export(default as X) 인식 (1.9.438)', run: () => {
|
|
3288
|
+
const m = require('../lib/pure-utils');
|
|
3289
|
+
const reexp = JSON.stringify(m._parseImplExports("export { default as getUserById } from './u.js';").sort()) === JSON.stringify(['getUserById']);
|
|
3290
|
+
const named = JSON.stringify(m._parseImplExports("export { foo, bar as baz } from './x.js';").sort()) === JSON.stringify(['baz', 'foo']);
|
|
3291
|
+
const noDefault = JSON.stringify(m._parseImplExports('export default function x(){}')) === JSON.stringify([]);
|
|
3292
|
+
return reexp && named && noDefault;
|
|
3293
|
+
} },
|
|
3287
3294
|
{ name: 'VERSION 형식 (x.y.z)', run: () => /^\d+\.\d+\.\d+$/.test(VERSION) }
|
|
3288
3295
|
];
|
|
3289
3296
|
}
|
package/lib/pure-utils.js
CHANGED
|
@@ -920,12 +920,15 @@ function _parseImplExports(src) {
|
|
|
920
920
|
for (const m of src.matchAll(/(?:module\.)?exports\.([A-Za-z_$][\w$]*)\s*=/g)) add(m[1]);
|
|
921
921
|
// 3) ESM 선언: export [async] function*/const/let/var/class foo
|
|
922
922
|
for (const m of src.matchAll(/export\s+(?:async\s+)?(?:function\s*\*?|const|let|var|class)\s+([A-Za-z_$][\w$]*)/g)) add(m[1]);
|
|
923
|
-
// 4) ESM
|
|
923
|
+
// 4) ESM 목록/재export: export { foo, bar as baz } / export { default as X } from './m' → 외부이름(as 뒤) 우선.
|
|
924
|
+
// 1.9.438 (11th 외부평가 Sonnet P3, UR-0139): `default as X` 는 별칭 X 가 named export → as 별칭을 먼저 채택(이전엔 'default' 시작이라 통째로 스킵). 'export * from' 은 이름 정적불가라 미지원.
|
|
924
925
|
for (const m of src.matchAll(/export\s*\{([^}]+)\}/g)) {
|
|
925
926
|
for (const part of m[1].split(',')) {
|
|
926
|
-
const seg = part.trim(); if (!seg
|
|
927
|
+
const seg = part.trim(); if (!seg) continue;
|
|
927
928
|
const asM = seg.match(/\bas\s+([A-Za-z_$][\w$]*)/);
|
|
928
|
-
|
|
929
|
+
if (asM) { add(asM[1]); continue; } // a as b / default as b → b
|
|
930
|
+
if (/^(?:default|type)\b/.test(seg)) continue; // 단독 default / type X 제외
|
|
931
|
+
add((seg.match(/^([A-Za-z_$][\w$]*)/) || [])[1]);
|
|
929
932
|
}
|
|
930
933
|
}
|
|
931
934
|
return [...out];
|