leerness 1.9.379 → 1.9.381
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 +33 -0
- package/README.md +5 -5
- package/bin/harness.js +9 -17
- package/lib/catalogs.js +12 -1
- package/package.json +1 -1
- package/scripts/e2e.js +44 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.381 — 2026-06-06 — UR-0025: KEYWORD_STOPWORDS 단일출처 (키워드 stopwords 2중 중복 제거)
|
|
4
|
+
|
|
5
|
+
**🧩 handoff 자동회수 / lessons 키워드추출이 각자 보유하던 동일 stopwords Set 을 catalogs 단일출처로 DRY.**
|
|
6
|
+
|
|
7
|
+
### 배경
|
|
8
|
+
키워드 추출 stopwords(한국어 24 + 영어 5)가 harness.js 두 곳(handoff 자동회수 8332, lessons 키워드추출 14647)에 **2중 복제**. 한 곳만 바뀌면 두 키워드 추출 동작이 갈라짐.
|
|
9
|
+
|
|
10
|
+
### 구현
|
|
11
|
+
1. **`KEYWORD_STOPWORDS`** → lib/catalogs.js (Set, 29개 단일출처).
|
|
12
|
+
2. harness 2개 인라인 `new Set([...])` → `const stopwords = KEYWORD_STOPWORDS;` (node 스크립트 정규식 결정적 교체, 내용 동일).
|
|
13
|
+
|
|
14
|
+
### 검증 (회귀 0)
|
|
15
|
+
- **selftest 126→127 PASS** (catalog Set 29개 + '작업'/'task' 포함 + reference equality + 2 사이트 const + 인라인 Set 0).
|
|
16
|
+
- **E2E 325→326 PASS** (catalog Set + 키워드 필터 동작(stopwords 제거 후 고유 키워드만) + handoff consumer 무크래시).
|
|
17
|
+
- 실측: KEYWORD_STOPWORDS 29개, 필터 정상, handoff exit 0.
|
|
18
|
+
|
|
19
|
+
## 1.9.380 — 2026-06-06 — UR-0025: REQUIRED_WORKSPACE_FILES 단일출처 (필수목록 3중 중복 제거)
|
|
20
|
+
|
|
21
|
+
**🧩 verify / migrate audit / migrate apply 가 각자 보유하던 동일 9-파일 필수목록을 catalogs 단일출처로 DRY.**
|
|
22
|
+
|
|
23
|
+
### 배경
|
|
24
|
+
필수 워크스페이스 파일 목록(9종)이 verify(6786)·migrateAuditCmd(6807)·migrateApplyCmd(6839) 에 **3중 복제**돼 있었음. 한 곳만 바뀌면 불일치 위험.
|
|
25
|
+
|
|
26
|
+
### 구현
|
|
27
|
+
1. **`REQUIRED_WORKSPACE_FILES`** → lib/catalogs.js (단일출처).
|
|
28
|
+
2. harness 3개 인라인 배열 → `const required = REQUIRED_WORKSPACE_FILES;` 로 교체(node 스크립트 결정적 교체, 내용 동일 확인).
|
|
29
|
+
3. 별도 4-파일 경량 체크(7511)는 다른 용도라 보존(중복 아님).
|
|
30
|
+
|
|
31
|
+
### 검증 (회귀 0)
|
|
32
|
+
- **selftest 125→126 PASS** (catalog 9파일 + reference equality + 3 사이트 const 사용).
|
|
33
|
+
- **E2E 324→325 PASS** (verify: init 통과 / AGENTS.md 누락 시 exit 1 + missing 메시지).
|
|
34
|
+
- 실측: verify init통과·누락실패, migrate audit missing-file 감지 정상.
|
|
35
|
+
|
|
3
36
|
## 1.9.379 — 2026-06-06 — UR-0025 심화: pulse 핸들러 렌더 코어 분리 (수집→렌더 패턴 착수)
|
|
4
37
|
|
|
5
38
|
**🧩 큰 핸들러 모듈화 착수 — display 핸들러의 "수집(I/O) → 렌더(순수)" 분리 패턴을 pulse 에 적용.**
|
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.381 하네스를 사용합니다. 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.381는 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.379는 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.381)** · 매 라운드 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.381: 2026-06-06
|
|
588
588
|
<!-- leerness:project-readme:end -->
|
|
589
589
|
|
package/bin/harness.js
CHANGED
|
@@ -26,9 +26,9 @@ const { _isSecretKey, _isPlaceholderSecret, _looksSecretLike, _mergeLines, _merg
|
|
|
26
26
|
// 1.9.304 (UR-0025): 순수 분석/검증 함수 모듈 분리.
|
|
27
27
|
const { _evidenceQuality, _parseEvidenceStats, _shellGuardAnalyze, _claimFileInGit, _epistemicHonestyCheck } = require('../lib/analyzers');
|
|
28
28
|
// 1.9.295 (UR-0025 4단계): 정적 데이터 카탈로그 모듈 분리 (비파괴, require-based).
|
|
29
|
-
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, SKILL_CATALOG_PRESETS } = require('../lib/catalogs'); // 1.9.344/368/369 (UR-0025): catalog 분리 (MERGE_OVERWRITE_FILES/MINIMAL_SKIP_KEYS 포함)
|
|
29
|
+
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 포함)
|
|
30
30
|
|
|
31
|
-
const VERSION = '1.9.
|
|
31
|
+
const VERSION = '1.9.381';
|
|
32
32
|
|
|
33
33
|
// 1.9.290 (UR-0037, Codex gpt-5.5 #4 수렴): CLI 전용 부작용은 require 시 실행하지 않는다.
|
|
34
34
|
// 이전: warning listener 제거 / NODE_OPTIONS 변경 / chcp IIFE 가 top-level 즉시 실행 → require('harness') 시 호스트 프로세스 오염.
|
|
@@ -3016,6 +3016,8 @@ function _selfTestCases() {
|
|
|
3016
3016
|
{ name: 'UR-0025: _renderWorkspaceReferenceGuide 모듈 분리 + 빌더 동작 (1.9.377)', run: () => { const m = require('../lib/pure-utils'); if (typeof _renderWorkspaceReferenceGuide !== 'function' || m._renderWorkspaceReferenceGuide !== _renderWorkspaceReferenceGuide) return false; const g = _renderWorkspaceReferenceGuide('.leerness', '9.9.9', '2026-01-01T00:00:00.000Z'); const wrapperThin = read(__filename).includes('return _renderWorkspaceReferenceGuide(dirName, VERSION, new Date().toISOString())'); return g.includes('.leerness/progress-tracker.md') && g.includes('9.9.9') && g.includes('자주 묻는 위치') && g.includes('마이그레이션 안내') && wrapperThin; } },
|
|
3017
3017
|
{ name: 'UR-0073: team MCP 도구 2종(read-only) 정의 + dispatch 와이어 (1.9.378)', run: () => { const tools = require('../lib/mcp-tools'); const src = read(__filename); const tl = tools.find(t => t.name === 'leerness_team_list'); const tp = tools.find(t => t.name === 'leerness_team_preview'); const defsOk = tl && tl.requiredTier === 'read-only' && tp && tp.requiredTier === 'read-only' && tp.inputSchema.required && tp.inputSchema.required.includes('id'); const wired = src.includes("case " + "'leerness_team_list':") && src.includes("case " + "'leerness_team_preview':") && /cliArgs = \['team', 'list'/.test(src) && /cliArgs = \['team', 'preview'/.test(src); return !!defsOk && wired; } },
|
|
3018
3018
|
{ name: 'UR-0025 심화: pulse 렌더 코어 분리 — _memorySurface + _renderPulseLine 행위 (1.9.379)', run: () => { const m = require('../lib/pure-utils'); if (typeof _memorySurface !== 'function' || typeof _renderPulseLine !== 'function' || m._memorySurface !== _memorySurface || m._renderPulseLine !== _renderPulseLine) return false; const ms = _memorySurface({ tasks: 1, decisions: 2, rules: 3, milestones: 4, lessons: 5 }) === 'T1/D2/R3/P4/L5' && _memorySurface({}) === 'T0/D0/R0/P0/L0'; const base = _renderPulseLine({ version: '1.0.0', roundCount: 7, mcpTools: 85, memorySurface: 'T0/D1/R0/P2/L0' }); const ln = base.includes('v1.0.0') && base.includes('R7') && base.includes('MCP 85') && base.includes('T0/D1/R0/P2/L0') && !base.includes('🎯') && !base.includes('abnormal'); const full = _renderPulseLine({ version: '1.0.0', roundCount: 7, mcpTools: 85, memorySurface: 'x', nextMilestone: 400, etaDays: 6, abnormalShutdown: 'high' }); const ln2 = full.includes('🎯 R400 (6d)') && full.includes('abnormal:high'); const wired = read(__filename).includes('const line = _renderPulseLine(data)') && read(__filename).includes('data.memorySurface = _memorySurface('); return ms && ln && ln2 && wired; } },
|
|
3019
|
+
{ name: 'UR-0025: REQUIRED_WORKSPACE_FILES 단일출처 — verify/migrate audit·apply 3중 중복 제거 (1.9.380)', run: () => { const c = require('../lib/catalogs'); if (REQUIRED_WORKSPACE_FILES !== c.REQUIRED_WORKSPACE_FILES) return false; const listOk = Array.isArray(c.REQUIRED_WORKSPACE_FILES) && c.REQUIRED_WORKSPACE_FILES.length === 9 && c.REQUIRED_WORKSPACE_FILES.includes('AGENTS.md') && c.REQUIRED_WORKSPACE_FILES.includes('.harness/plan.md'); const usesConst = (read(__filename).match(/const required = REQUIRED_WORKSPACE_FILES;/g) || []).length >= 3; return listOk && usesConst; } },
|
|
3020
|
+
{ name: 'UR-0025: KEYWORD_STOPWORDS 단일출처 — handoff/lessons 키워드 stopwords 2중 중복 제거 (1.9.381)', run: () => { const c = require('../lib/catalogs'); if (KEYWORD_STOPWORDS !== c.KEYWORD_STOPWORDS) return false; const setOk = c.KEYWORD_STOPWORDS instanceof Set && c.KEYWORD_STOPWORDS.has('작업') && c.KEYWORD_STOPWORDS.has('task') && !c.KEYWORD_STOPWORDS.has('고유단어') && c.KEYWORD_STOPWORDS.size >= 25; const usesConst = (read(__filename).match(/const stopwords = KEYWORD_STOPWORDS;/g) || []).length >= 2 && !/const stopwords = new Set\(\[/.test(read(__filename)); return setOk && usesConst; } },
|
|
3019
3021
|
{ name: 'VERSION 형식 (x.y.z)', run: () => /^\d+\.\d+\.\d+$/.test(VERSION) }
|
|
3020
3022
|
];
|
|
3021
3023
|
}
|
|
@@ -6783,7 +6785,7 @@ function status(root) {
|
|
|
6783
6785
|
function verify(root) {
|
|
6784
6786
|
root = absRoot(root);
|
|
6785
6787
|
let bad = 0;
|
|
6786
|
-
const required =
|
|
6788
|
+
const required = REQUIRED_WORKSPACE_FILES; // 1.9.380 (UR-0025): lib/catalogs 단일출처
|
|
6787
6789
|
for (const f of required) { if (!exists(path.join(root,f))) { bad++; fail(`missing: ${f}`); } }
|
|
6788
6790
|
const g = exists(path.join(root,'.harness/guideline.md')) ? read(path.join(root,'.harness/guideline.md')) : '';
|
|
6789
6791
|
if (!g.includes('plan.md') || !g.includes('progress-tracker.md')) { bad++; fail('guideline.md must reference plan.md and progress-tracker.md'); }
|
|
@@ -6804,7 +6806,7 @@ function migrateAuditCmd(root, opts = {}) {
|
|
|
6804
6806
|
if (exists(decisionsPath(root)) && !exists(decisionsJsonPath(root)) && _loadDecisions(root).length > 0) findings.push({ kind: 'canonical-pending', detail: 'decisions.md → decisions.json 백필 예정', action: 'decision add/drop 또는 migrate 시 자동' });
|
|
6805
6807
|
if (exists(lessonsPath(root)) && !exists(lessonsJsonPath(root)) && _loadLessons(root).length > 0) findings.push({ kind: 'canonical-pending', detail: 'lessons.md → lessons.json 백필 예정', action: 'lesson save/drop 또는 migrate 시 자동' });
|
|
6806
6808
|
// 누락 예상 파일 (현재 버전 required set 기준)
|
|
6807
|
-
const required =
|
|
6809
|
+
const required = REQUIRED_WORKSPACE_FILES; // 1.9.380 (UR-0025): lib/catalogs 단일출처
|
|
6808
6810
|
for (const f of required) if (!exists(path.join(root, f))) findings.push({ kind: 'missing-file', detail: f, action: 'migrate 가 생성' });
|
|
6809
6811
|
if (opts.json) { log(JSON.stringify({ version: VERSION, root, projectVersion: projVer, willChange: findings.length, findings }, null, 2)); return; }
|
|
6810
6812
|
log(`# leerness migrate audit (1.9.356, UR-0075 dry-run) — 실제 변경 없음`);
|
|
@@ -6836,7 +6838,7 @@ function migrateApplyCmd(root, opts = {}) {
|
|
|
6836
6838
|
const projVer = exists(hvPath) ? read(hvPath).trim() : null;
|
|
6837
6839
|
if (!projVer) skipped.push({ kind: 'no-version', detail: 'HARNESS_VERSION 없음', reason: `leerness migrate --path ${root}` });
|
|
6838
6840
|
else if (compareVer(projVer, VERSION) < 0) skipped.push({ kind: 'version-drift', detail: `${projVer} → ${VERSION}`, reason: `leerness update --yes --path ${root}` });
|
|
6839
|
-
const required =
|
|
6841
|
+
const required = REQUIRED_WORKSPACE_FILES; // 1.9.380 (UR-0025): lib/catalogs 단일출처
|
|
6840
6842
|
for (const f of required) if (!exists(path.join(root, f))) skipped.push({ kind: 'missing-file', detail: f, reason: 'leerness migrate / init' });
|
|
6841
6843
|
if (opts.json) { log(JSON.stringify({ version: VERSION, root, dryRun: !apply, appliedCount: apply ? applied.length : 0, applied, skipped }, null, 2)); return; }
|
|
6842
6844
|
log(`# leerness migrate apply (1.9.357, UR-0075 Phase C)${apply ? '' : ' — dry-run (변경 없음 · --yes 로 적용)'}`);
|
|
@@ -8328,12 +8330,7 @@ function handoff(root) {
|
|
|
8328
8330
|
const lrows = readProgressRows(root);
|
|
8329
8331
|
const latestRow = lrows.filter(r => r.status === 'in-progress' || r.status === 'planned').pop() || lrows[lrows.length - 1];
|
|
8330
8332
|
if (latestRow && latestRow.request) {
|
|
8331
|
-
const stopwords =
|
|
8332
|
-
'이런','저런','하다','하고','있는','하지','에서',
|
|
8333
|
-
'작업','구현','추가','진행','수정','변경','검토','확인',
|
|
8334
|
-
'프로젝트','관리','기능','시스템','코드','파일','버전','정리','계획',
|
|
8335
|
-
'next','action','task','todo','work'
|
|
8336
|
-
]);
|
|
8333
|
+
const stopwords = KEYWORD_STOPWORDS; // 1.9.381 (UR-0025): lib/catalogs 단일출처
|
|
8337
8334
|
const tokens = String(latestRow.request).toLowerCase().match(/[\w가-힣]{4,}/g) || [];
|
|
8338
8335
|
const keyword = tokens.filter(t => !stopwords.has(t)).sort((a, b) => b.length - a.length)[0];
|
|
8339
8336
|
if (keyword) {
|
|
@@ -14643,12 +14640,7 @@ function lessonsCmd(root) {
|
|
|
14643
14640
|
// 4자+ 키워드 중 가장 긴 단어 1개 선택
|
|
14644
14641
|
const tokens = String(latest.request).toLowerCase().match(/[\w가-힣]{4,}/g) || [];
|
|
14645
14642
|
// 1.9.55: stopword 확장 — 너무 일반적인 단어 제외 (lessons 매칭에 도움 안 됨)
|
|
14646
|
-
const stopwords =
|
|
14647
|
-
'이런', '저런', '하다', '하고', '있는', '하지', '에서',
|
|
14648
|
-
'작업', '구현', '추가', '진행', '수정', '변경', '검토', '확인',
|
|
14649
|
-
'프로젝트', '관리', '기능', '시스템', '코드', '파일', '버전', '정리', '계획',
|
|
14650
|
-
'next', 'action', 'task', 'todo', 'work'
|
|
14651
|
-
]);
|
|
14643
|
+
const stopwords = KEYWORD_STOPWORDS; // 1.9.381 (UR-0025): lib/catalogs 단일출처
|
|
14652
14644
|
const candidate = tokens.filter(t => !stopwords.has(t)).sort((a, b) => b.length - a.length)[0];
|
|
14653
14645
|
if (candidate) query = candidate;
|
|
14654
14646
|
}
|
package/lib/catalogs.js
CHANGED
|
@@ -398,6 +398,17 @@ const MERGE_OVERWRITE_FILES = new Set([
|
|
|
398
398
|
'.harness/context-routing.md'
|
|
399
399
|
]);
|
|
400
400
|
|
|
401
|
+
// 1.9.380 (UR-0025): 워크스페이스 필수 파일 — verify / migrate audit / migrate apply 단일출처 (harness 3중 중복 제거).
|
|
402
|
+
const REQUIRED_WORKSPACE_FILES = ['.harness/plan.md', '.harness/progress-tracker.md', '.harness/guideline.md', '.harness/protected-files.md', '.harness/design-system.md', '.harness/anti-lazy-work-policy.md', '.harness/session-handoff.md', '.harness/current-state.md', 'AGENTS.md'];
|
|
403
|
+
|
|
404
|
+
// 1.9.381 (UR-0025): 키워드 추출 stopwords — handoff 자동회수 / lessons 키워드 추출 단일출처 (harness 2중 중복 제거).
|
|
405
|
+
const KEYWORD_STOPWORDS = new Set([
|
|
406
|
+
'이런', '저런', '하다', '하고', '있는', '하지', '에서',
|
|
407
|
+
'작업', '구현', '추가', '진행', '수정', '변경', '검토', '확인',
|
|
408
|
+
'프로젝트', '관리', '기능', '시스템', '코드', '파일', '버전', '정리', '계획',
|
|
409
|
+
'next', 'action', 'task', 'todo', 'work'
|
|
410
|
+
]);
|
|
411
|
+
|
|
401
412
|
// 1.9.369 (UR-0025): init --minimal 시 제외하는 키 — 코어 워크플로(handoff/verify/audit/session close)가 요구하지 않는 파일만. harness 에서 분리.
|
|
402
413
|
const MINIMAL_SKIP_KEYS = new Set([
|
|
403
414
|
'.cursor/rules/leerness.mdc', '.github/copilot-instructions.md',
|
|
@@ -419,4 +430,4 @@ const SKILL_CATALOG_PRESETS = {
|
|
|
419
430
|
homepage: 'https://github.com/anthropics/skills' }
|
|
420
431
|
};
|
|
421
432
|
|
|
422
|
-
module.exports = { 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, SKILL_CATALOG_PRESETS };
|
|
433
|
+
module.exports = { 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 };
|
package/package.json
CHANGED
package/scripts/e2e.js
CHANGED
|
@@ -5252,5 +5252,49 @@ total++;
|
|
|
5252
5252
|
if (!ok) failed++;
|
|
5253
5253
|
}
|
|
5254
5254
|
|
|
5255
|
+
// 1.9.380 회귀 (UR-0025): REQUIRED_WORKSPACE_FILES 단일출처 — verify 가 catalog 리스트로 init통과/누락실패
|
|
5256
|
+
total++;
|
|
5257
|
+
{
|
|
5258
|
+
let ok = false;
|
|
5259
|
+
try {
|
|
5260
|
+
const c = require(path.resolve(__dirname, '..', 'lib', 'catalogs'));
|
|
5261
|
+
const catOk = Array.isArray(c.REQUIRED_WORKSPACE_FILES) && c.REQUIRED_WORKSPACE_FILES.length === 9 && c.REQUIRED_WORKSPACE_FILES.includes('AGENTS.md');
|
|
5262
|
+
const d = fs.mkdtempSync(path.join(os.tmpdir(), 'leerness-req-'));
|
|
5263
|
+
cp.spawnSync(process.execPath, [CLI, 'init', d, '--yes', '--language', 'ko'], { encoding: 'utf8', timeout: 30000 });
|
|
5264
|
+
const r1 = cp.spawnSync(process.execPath, [CLI, 'verify', d], { encoding: 'utf8', timeout: 15000 });
|
|
5265
|
+
const passOk = r1.status === 0;
|
|
5266
|
+
fs.rmSync(path.join(d, 'AGENTS.md'), { force: true });
|
|
5267
|
+
const r2 = cp.spawnSync(process.execPath, [CLI, 'verify', d], { encoding: 'utf8', timeout: 15000 });
|
|
5268
|
+
const failOk = r2.status === 1 && /missing: AGENTS\.md/.test((r2.stdout || '') + (r2.stderr || ''));
|
|
5269
|
+
fs.rmSync(d, { recursive: true, force: true });
|
|
5270
|
+
ok = catOk && passOk && failOk;
|
|
5271
|
+
} catch {}
|
|
5272
|
+
console.log(ok ? '✓ B(1.9.380) UR-0025: REQUIRED_WORKSPACE_FILES 단일출처 (verify init통과/누락실패)' : '✗ required files 단일출처 실패');
|
|
5273
|
+
if (!ok) failed++;
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
// 1.9.381 회귀 (UR-0025): KEYWORD_STOPWORDS 단일출처 — catalog Set + 키워드 필터 동작 + handoff consumer 무크래시
|
|
5277
|
+
total++;
|
|
5278
|
+
{
|
|
5279
|
+
let ok = false;
|
|
5280
|
+
try {
|
|
5281
|
+
const c = require(path.resolve(__dirname, '..', 'lib', 'catalogs'));
|
|
5282
|
+
const setOk = c.KEYWORD_STOPWORDS instanceof Set && c.KEYWORD_STOPWORDS.has('작업') && c.KEYWORD_STOPWORDS.has('task') && !c.KEYWORD_STOPWORDS.has('고유키워드') && c.KEYWORD_STOPWORDS.size >= 25;
|
|
5283
|
+
// 필터 동작: stopwords 제거 후 고유 키워드만 남음
|
|
5284
|
+
const tokens = ['작업', 'task', '고유키워드', 'work'];
|
|
5285
|
+
const filtered = tokens.filter(t => !c.KEYWORD_STOPWORDS.has(t));
|
|
5286
|
+
const filterOk = filtered.length === 1 && filtered[0] === '고유키워드';
|
|
5287
|
+
// consumer 무크래시
|
|
5288
|
+
const d = fs.mkdtempSync(path.join(os.tmpdir(), 'leerness-sw-'));
|
|
5289
|
+
cp.spawnSync(process.execPath, [CLI, 'init', d, '--yes', '--language', 'ko'], { encoding: 'utf8', timeout: 30000 });
|
|
5290
|
+
const r = cp.spawnSync(process.execPath, [CLI, 'handoff', d], { encoding: 'utf8', timeout: 30000 });
|
|
5291
|
+
const handoffOk = r.status === 0;
|
|
5292
|
+
fs.rmSync(d, { recursive: true, force: true });
|
|
5293
|
+
ok = setOk && filterOk && handoffOk;
|
|
5294
|
+
} catch {}
|
|
5295
|
+
console.log(ok ? '✓ B(1.9.381) UR-0025: KEYWORD_STOPWORDS 단일출처 (catalog Set + 필터 + handoff 무크래시)' : '✗ stopwords 단일출처 실패');
|
|
5296
|
+
if (!ok) failed++;
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5255
5299
|
console.log(`\nE2E result: ${total - failed}/${total} passed · ${((Date.now() - _e2eStart) / 1000).toFixed(0)}s`);
|
|
5256
5300
|
if (failed > 0) process.exit(1);
|