leerness 1.9.211 โ 1.9.212
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 +40 -0
- package/README.md +3 -3
- package/bin/harness.js +224 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.212 โ 2026-05-22
|
|
4
|
+
|
|
5
|
+
**๐ ๋ฉฑ๋ฑ์ฑ ๊ฐ์ฌ + ruleAdd/taskAdd dedup ๋ณด๊ฐ (์ฌ์ฉ์ ๋ช
์).**
|
|
6
|
+
|
|
7
|
+
### ์ฌ์ฉ์ ๋ช
์
|
|
8
|
+
> *"๋ค์ํ ๋ถ๋ถ์์ ๋ฉฑ๋ฑ์ฑ์ด ํ์ํ ๋ถ๋ถ์ด ๊ณ ๋ ค๋๊ณ ์๋์ง ํ์ธํด์ฃผ๊ณ ์ฌ๋ฐ๋ฅธ ๋ฐฉํฅ์ธ์ง ํ๋จํด์ค"*
|
|
9
|
+
|
|
10
|
+
### 1. ruleAdd dedup (line 10229+)
|
|
11
|
+
- ๊ฐ์ description + trigger + active ๋ฃฐ ์ด๋ฏธ ์กด์ฌ ์ skip
|
|
12
|
+
- `--force` ํ๋๊ทธ๋ก ์ฐํ ๊ฐ๋ฅ
|
|
13
|
+
- ์ถ๋ ฅ: `rule exists (skip): R-XXXX [trigger] description (--force ๋ก ๋ฎ์ด์ฐ๊ธฐ)`
|
|
14
|
+
|
|
15
|
+
### 2. taskAdd dedup (line 3709+)
|
|
16
|
+
- progress-tracker.md ์ markdown table ํ์ฑ (`| T-XXXX | status | request | โฆ |`)
|
|
17
|
+
- ๊ฐ์ request ํ
์คํธ + ํ์ฑ ์ํ(`requested`/`in-progress`) ์ด๋ฏธ ์กด์ฌ ์ skip
|
|
18
|
+
- `--force` ํ๋๊ทธ๋ก ์ฐํ ๊ฐ๋ฅ
|
|
19
|
+
|
|
20
|
+
### 3. `_runIdempotencyAudit(root)` โ 4์์ญ ์ ๊ฒ
|
|
21
|
+
- **rules**: ๊ฐ์ description + trigger + active ์ค๋ณต (severity: medium)
|
|
22
|
+
- **tasks**: ๊ฐ์ request ํ
์คํธ + ํ์ฑ ์ํ ์ค๋ณต (severity: medium)
|
|
23
|
+
- **user-requests**: 1.9.207 ์์ฒด dedup ๊ฒ์ฆ (severity: low)
|
|
24
|
+
- **wakeups**: 1.9.205 ๋์ผ expectedFireAt ๊ฒ์ฆ (severity: high)
|
|
25
|
+
|
|
26
|
+
### 4. `leerness idempotency audit` CLI
|
|
27
|
+
- ์๋ฐ ๋ถ๋ฅ (high/medium/low)
|
|
28
|
+
- ์์ญ๋ณ verified / violations ๋ณด๊ณ
|
|
29
|
+
- `--json` ์ต์
|
|
30
|
+
|
|
31
|
+
### 5. ๋์ ํ๊ท (1.9.200~211) โ ๋ชจ๋ ์ ์ง
|
|
32
|
+
|
|
33
|
+
### 6. stress-v157 โ 17/17 PASS
|
|
34
|
+
- 1.9.212 (8) + ์ฑ๋ฅ (2) + ๋์ ํ๊ท (7)
|
|
35
|
+
- ๊ฒฉ๋ฆฌ tmp dir์์ ruleAdd 2ํ โ 1๊ฑด๋ง ๋ฑ๋ก ๊ฒ์ฆ
|
|
36
|
+
- `--force` ์ฐํ ๊ฒ์ฆ
|
|
37
|
+
- ์๋ ์ค๋ณต rule ์ฝ์
โ audit์ด ์ ํํ 1๊ฑด violation ํ์ง
|
|
38
|
+
|
|
39
|
+
### 7. ์๋ release (74 ๋ผ์ด๋ main-push streak ยท 35 ๋ผ์ด๋ npm publish streak)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
3
43
|
## 1.9.211 โ 2026-05-22
|
|
4
44
|
|
|
5
45
|
**๐ `.harness` โ `.leerness` opt-in ๋ง์ด๊ทธ๋ ์ด์
+ AI ์ฐธ์กฐ ๊ฐ์ด๋ (์ฌ์ฉ์ ๋ช
์).**
|
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.212 AI Agent Reliability Harness + Sandbox โ
|
|
16
16
|
โ verify ยท remember ยท orchestrate ยท audit ยท sandbox ยท drift โ
|
|
17
|
-
โ
|
|
17
|
+
โ ๐ ๋ฉฑ๋ฑ์ฑ ๊ฐ์ฌ + ruleAdd/taskAdd dedup (์ฌ์ฉ์ ๋ช
์) โ
|
|
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.212';
|
|
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 ์ฒ๋ฆฌ).
|
|
@@ -3129,6 +3129,194 @@ function migrateWorkspaceDirCmd(root) {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
}
|
|
3131
3131
|
|
|
3132
|
+
// 1.9.212: leerness idempotency <audit> โ ๋ฉฑ๋ฑ์ฑ ์๋ฐ ํ์ง + ๊ถ์ฅ fix (์ฌ์ฉ์ ๋ช
์)
|
|
3133
|
+
// "๋ค์ํ ๋ถ๋ถ์์ ๋ฉฑ๋ฑ์ฑ์ด ํ์ํ ๋ถ๋ถ์ด ๊ณ ๋ ค๋๊ณ ์๋์ง ํ์ธํด์ฃผ๊ณ ์ฌ๋ฐ๋ฅธ ๋ฐฉํฅ์ธ์ง ํ๋จ"
|
|
3134
|
+
// ํ์ง ์์ญ:
|
|
3135
|
+
// 1. rules.md โ ๊ฐ์ description + trigger + active ์ค๋ณต
|
|
3136
|
+
// 2. progress-tracker.md โ ๊ฐ์ request ํ
์คํธ ์ค๋ณต (ํ์ฑ ์ํ)
|
|
3137
|
+
// 3. user-requests.json โ ๋์ผ ํ
์คํธ + open (1.9.207 ์์ฒด dedup ๊ฒ์ฆ)
|
|
3138
|
+
// 4. active-wakeups.json โ ๋์ผ expectedFireAt ์ค๋ณต (1.9.205 dedup ๊ฒ์ฆ)
|
|
3139
|
+
// 5. next-action-queue.json โ ๋์ผ title ์ค๋ณต (1.9.201 dedup ๊ฒ์ฆ)
|
|
3140
|
+
function _runIdempotencyAudit(root) {
|
|
3141
|
+
const audit = {
|
|
3142
|
+
auditedAt: new Date().toISOString(),
|
|
3143
|
+
auditVersion: VERSION,
|
|
3144
|
+
violations: [],
|
|
3145
|
+
verified: []
|
|
3146
|
+
};
|
|
3147
|
+
// 1) rules.md dup ๊ฒ์ฌ
|
|
3148
|
+
try {
|
|
3149
|
+
const rules = readRules(root);
|
|
3150
|
+
const active = rules.filter(r => r.status === 'active');
|
|
3151
|
+
const seen = new Map();
|
|
3152
|
+
for (const r of active) {
|
|
3153
|
+
const key = `${r.trigger}::${r.rule}`;
|
|
3154
|
+
if (seen.has(key)) {
|
|
3155
|
+
audit.violations.push({
|
|
3156
|
+
kind: 'rule-duplicate',
|
|
3157
|
+
location: '.harness/rules.md',
|
|
3158
|
+
detail: `์ค๋ณต ๋ฃฐ: ${r.id} == ${seen.get(key)} (${r.trigger}: ${r.rule.slice(0, 60)})`,
|
|
3159
|
+
severity: 'medium',
|
|
3160
|
+
fix: `leerness rule remove ${r.id}`
|
|
3161
|
+
});
|
|
3162
|
+
} else {
|
|
3163
|
+
seen.set(key, r.id);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
if (audit.violations.filter(v => v.kind === 'rule-duplicate').length === 0) {
|
|
3167
|
+
audit.verified.push({ kind: 'rules', detail: `${active.length} active rules, ์ค๋ณต 0๊ฑด` });
|
|
3168
|
+
}
|
|
3169
|
+
} catch (e) { audit.violations.push({ kind: 'audit-error', area: 'rules', detail: String(e.message || e), severity: 'low' }); }
|
|
3170
|
+
|
|
3171
|
+
// 2) progress-tracker.md ์ค๋ณต request ๊ฒ์ฌ
|
|
3172
|
+
// ํฌ๋งท: | T-XXXX | status | request | evidence | nextAction | date |
|
|
3173
|
+
try {
|
|
3174
|
+
const pt = path.join(root, '.harness', 'progress-tracker.md');
|
|
3175
|
+
if (exists(pt)) {
|
|
3176
|
+
const content = read(pt);
|
|
3177
|
+
const lines = content.split(/\r?\n/);
|
|
3178
|
+
const requests = new Map(); // text โ { id, status, line }
|
|
3179
|
+
for (let i = 0; i < lines.length; i++) {
|
|
3180
|
+
if (!/^\|\s*T-\d{4,}\s*\|/.test(lines[i])) continue;
|
|
3181
|
+
const cells = lines[i].split('|').slice(1, -1).map(s => s.trim());
|
|
3182
|
+
if (cells.length < 3) continue;
|
|
3183
|
+
const id = cells[0];
|
|
3184
|
+
const status = (cells[1] || '').toLowerCase();
|
|
3185
|
+
const text = cells[2];
|
|
3186
|
+
if (text.length < 5) continue;
|
|
3187
|
+
const isActive = !/^(done|dropped|blocked|completed)$/i.test(status);
|
|
3188
|
+
if (!isActive) continue;
|
|
3189
|
+
if (requests.has(text)) {
|
|
3190
|
+
const prev = requests.get(text);
|
|
3191
|
+
audit.violations.push({
|
|
3192
|
+
kind: 'task-duplicate-request',
|
|
3193
|
+
location: '.harness/progress-tracker.md',
|
|
3194
|
+
detail: `์ค๋ณต request: "${text.slice(0, 50)}โฆ" (${prev.id} & ${id})`,
|
|
3195
|
+
severity: 'medium',
|
|
3196
|
+
fix: `์ค๋ณต task ์ค ํ๋๋ฅผ leerness task drop <id> ์ฒ๋ฆฌ`
|
|
3197
|
+
});
|
|
3198
|
+
} else {
|
|
3199
|
+
requests.set(text, { id, status, line: i + 1 });
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
if (audit.violations.filter(v => v.kind === 'task-duplicate-request').length === 0) {
|
|
3203
|
+
audit.verified.push({ kind: 'tasks', detail: `${requests.size} active tasks, request ์ค๋ณต 0๊ฑด` });
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
} catch (e) { audit.violations.push({ kind: 'audit-error', area: 'tasks', detail: String(e.message || e), severity: 'low' }); }
|
|
3207
|
+
|
|
3208
|
+
// 3) user-requests.json ์์ฒด dedup ๊ฒ์ฆ (1.9.207)
|
|
3209
|
+
try {
|
|
3210
|
+
const ur = _loadUserRequests(root);
|
|
3211
|
+
const seen = new Map();
|
|
3212
|
+
for (const r of ur.requests) {
|
|
3213
|
+
if (r.status !== 'open' && r.status !== 'in-progress') continue;
|
|
3214
|
+
const k = r.text.trim();
|
|
3215
|
+
if (seen.has(k)) {
|
|
3216
|
+
audit.violations.push({
|
|
3217
|
+
kind: 'user-request-duplicate',
|
|
3218
|
+
location: '.harness/user-requests.json',
|
|
3219
|
+
detail: `์ค๋ณต open ์์ฒญ: ${r.id} == ${seen.get(k)} ("${k.slice(0, 50)}โฆ")`,
|
|
3220
|
+
severity: 'low',
|
|
3221
|
+
fix: `leerness requests drop ${r.id}`
|
|
3222
|
+
});
|
|
3223
|
+
} else {
|
|
3224
|
+
seen.set(k, r.id);
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
if (audit.violations.filter(v => v.kind === 'user-request-duplicate').length === 0) {
|
|
3228
|
+
audit.verified.push({ kind: 'user-requests', detail: `${seen.size} open requests, ์ค๋ณต 0๊ฑด (1.9.207 dedup OK)` });
|
|
3229
|
+
}
|
|
3230
|
+
} catch (e) { audit.violations.push({ kind: 'audit-error', area: 'user-requests', detail: String(e.message || e), severity: 'low' }); }
|
|
3231
|
+
|
|
3232
|
+
// 4) active-wakeups.json ๊ฒ์ฆ (1.9.205)
|
|
3233
|
+
try {
|
|
3234
|
+
const wk = _loadActiveWakeups(root);
|
|
3235
|
+
const pending = wk.wakeups.filter(w => w.status === 'pending');
|
|
3236
|
+
const seenT = new Map();
|
|
3237
|
+
for (const w of pending) {
|
|
3238
|
+
if (seenT.has(w.expectedFireAt)) {
|
|
3239
|
+
audit.violations.push({
|
|
3240
|
+
kind: 'wakeup-duplicate',
|
|
3241
|
+
location: '.harness/active-wakeups.json',
|
|
3242
|
+
detail: `๋์ผ expectedFireAt ์ค๋ณต: ${w.expectedFireAt}`,
|
|
3243
|
+
severity: 'high',
|
|
3244
|
+
fix: `leerness ์๋ _recordWakeup filter dedup ๊ฒํ ํ์`
|
|
3245
|
+
});
|
|
3246
|
+
} else {
|
|
3247
|
+
seenT.set(w.expectedFireAt, true);
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
if (audit.violations.filter(v => v.kind === 'wakeup-duplicate').length === 0) {
|
|
3251
|
+
audit.verified.push({ kind: 'wakeups', detail: `${pending.length} pending wakeups, ์ค๋ณต 0๊ฑด (1.9.205 dedup OK)` });
|
|
3252
|
+
}
|
|
3253
|
+
} catch {}
|
|
3254
|
+
|
|
3255
|
+
audit.summary = {
|
|
3256
|
+
totalViolations: audit.violations.length,
|
|
3257
|
+
highSeverity: audit.violations.filter(v => v.severity === 'high').length,
|
|
3258
|
+
mediumSeverity: audit.violations.filter(v => v.severity === 'medium').length,
|
|
3259
|
+
lowSeverity: audit.violations.filter(v => v.severity === 'low').length,
|
|
3260
|
+
verifiedAreas: audit.verified.length,
|
|
3261
|
+
overall: audit.violations.length === 0 ? 'clean' : 'violations-found'
|
|
3262
|
+
};
|
|
3263
|
+
return audit;
|
|
3264
|
+
}
|
|
3265
|
+
function idempotencyCmd(root, sub) {
|
|
3266
|
+
root = absRoot(root);
|
|
3267
|
+
const isTty = process.stdout && process.stdout.isTTY;
|
|
3268
|
+
const cyan = s => isTty ? `\x1b[36m${s}\x1b[0m` : s;
|
|
3269
|
+
const grn = s => isTty ? `\x1b[32m${s}\x1b[0m` : s;
|
|
3270
|
+
const yel = s => isTty ? `\x1b[33m${s}\x1b[0m` : s;
|
|
3271
|
+
const red = s => isTty ? `\x1b[31m${s}\x1b[0m` : s;
|
|
3272
|
+
const dim = s => isTty ? `\x1b[2m${s}\x1b[0m` : s;
|
|
3273
|
+
|
|
3274
|
+
if (!sub || sub === 'help' || sub === '--help') {
|
|
3275
|
+
log(`# leerness idempotency (1.9.212) โ ๋ฉฑ๋ฑ์ฑ ์๋ฐ ํ์ง`);
|
|
3276
|
+
log('');
|
|
3277
|
+
log(` audit โ ์ํฌ์คํ์ด์ค ๋ฉฑ๋ฑ์ฑ ์ ๊ฒ (rules / tasks / user-requests / wakeups) (--json ๊ฐ๋ฅ)`);
|
|
3278
|
+
log('');
|
|
3279
|
+
log(dim(` dedup ์ ์ฉ ์์ญ: ruleAdd / taskAdd (1.9.212) + _recordUserRequest (1.9.207) + _recordWakeup (1.9.205)`));
|
|
3280
|
+
log(dim(` opt-out: --force ํ๋๊ทธ๋ก dedup ์ฐํ ๊ฐ๋ฅ`));
|
|
3281
|
+
return;
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
if (sub === 'audit') {
|
|
3285
|
+
const audit = _runIdempotencyAudit(root);
|
|
3286
|
+
if (has('--json')) { log(JSON.stringify(audit, null, 2)); return; }
|
|
3287
|
+
log(cyan(`# leerness idempotency audit (1.9.212)`));
|
|
3288
|
+
log(` audited at: ${audit.auditedAt}`);
|
|
3289
|
+
log('');
|
|
3290
|
+
const s = audit.summary;
|
|
3291
|
+
if (s.overall === 'clean') {
|
|
3292
|
+
log(grn(` โ ๋ฉฑ๋ฑ์ฑ ์๋ฐ ์์ โ verified ${s.verifiedAreas} ์์ญ`));
|
|
3293
|
+
} else {
|
|
3294
|
+
log(red(` โ ${s.totalViolations} ์๋ฐ ๋ฐ๊ฒฌ (high: ${s.highSeverity}, medium: ${s.mediumSeverity}, low: ${s.lowSeverity})`));
|
|
3295
|
+
}
|
|
3296
|
+
log('');
|
|
3297
|
+
if (audit.verified.length) {
|
|
3298
|
+
log(grn(`## โ
verified (${audit.verified.length})`));
|
|
3299
|
+
audit.verified.forEach(v => log(dim(` - [${v.kind}] ${v.detail}`)));
|
|
3300
|
+
log('');
|
|
3301
|
+
}
|
|
3302
|
+
if (audit.violations.length) {
|
|
3303
|
+
log(red(`## โ violations (${audit.violations.length})`));
|
|
3304
|
+
audit.violations.forEach(v => {
|
|
3305
|
+
const icon = v.severity === 'high' ? '๐จ' : (v.severity === 'medium' ? 'โ ' : 'โน');
|
|
3306
|
+
log(` ${icon} [${v.kind}] (${v.severity})`);
|
|
3307
|
+
log(dim(` ${v.location}`));
|
|
3308
|
+
log(` ${v.detail}`);
|
|
3309
|
+
if (v.fix) log(dim(` fix: ${v.fix}`));
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
return;
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
console.error(`Unknown subcommand: ${sub}`);
|
|
3316
|
+
console.error(`Run: leerness idempotency help`);
|
|
3317
|
+
process.exit(1);
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3132
3320
|
// 1.9.199: wakeup miss ์๋ ํ๋ณต ๊ฐํ โ last-handoff timestamp ๊ธฐ๋ก + 25min ๊ธฐ๋ interval ์ ๋ฐ ์ธก์
|
|
3133
3321
|
// ์ฌ์ฉ์ ๋ช
์ (1.9.198 ํ์): "22:01์ ๋ผ์ด๋์ ์๋์ง์
๋์ง์์์ด"
|
|
3134
3322
|
// 1.9.196 task-log mtime ๊ธฐ๋ฐ detector ๋ task-log ๊ฐ ์์ฃผ ์ ์
๋ฐ์ดํธ๋๋ฉด false positive.
|
|
@@ -3707,6 +3895,30 @@ function taskList(root) {
|
|
|
3707
3895
|
for (const r of filtered) log(`| ${r.id} | ${r.status} | ${r.request} | ${r.evidence} | ${r.nextAction} | ${r.updated} |`);
|
|
3708
3896
|
}
|
|
3709
3897
|
function taskAdd(root, text) {
|
|
3898
|
+
// 1.9.212: ๋ฉฑ๋ฑ์ฑ โ ๊ฐ์ request ํ
์คํธ + ํ์ฑ ์ํ (requested/in-progress) ์ด๋ฏธ ์กด์ฌ ์ skip (์ฌ์ฉ์ ๋ช
์)
|
|
3899
|
+
// progress-tracker.md ํฌ๋งท: | T-XXXX | status | request | evidence | nextAction | date |
|
|
3900
|
+
if (!has('--force') && text && text.trim()) {
|
|
3901
|
+
try {
|
|
3902
|
+
const pt = path.join(absRoot(root), '.harness', 'progress-tracker.md');
|
|
3903
|
+
if (exists(pt)) {
|
|
3904
|
+
const content = read(pt);
|
|
3905
|
+
const norm = text.trim();
|
|
3906
|
+
const lines = content.split(/\r?\n/);
|
|
3907
|
+
for (const line of lines) {
|
|
3908
|
+
if (!/^\|\s*T-\d{4,}\s*\|/.test(line)) continue;
|
|
3909
|
+
const cells = line.split('|').slice(1, -1).map(s => s.trim());
|
|
3910
|
+
if (cells.length < 3) continue;
|
|
3911
|
+
const id = cells[0];
|
|
3912
|
+
const status = (cells[1] || '').toLowerCase();
|
|
3913
|
+
const request = cells[2];
|
|
3914
|
+
if (request === norm && !/^(done|dropped|blocked|completed)$/i.test(status)) {
|
|
3915
|
+
ok(`task exists (skip): ${id} request="${norm.slice(0, 60)}โฆ" (--force ๋ก ๋ฎ์ด์ฐ๊ธฐ)`);
|
|
3916
|
+
return;
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
} catch {}
|
|
3921
|
+
}
|
|
3710
3922
|
const id = nextId(root, 'T');
|
|
3711
3923
|
upsertProgress(root, { id, status: arg('--status','requested'), request: text, evidence: arg('--evidence','user-request'), nextAction: arg('--next','๋ค์ ์ก์
์์ฑ') });
|
|
3712
3924
|
ok(`task added: ${id}`);
|
|
@@ -10235,8 +10447,16 @@ function ruleAdd(root, description) {
|
|
|
10235
10447
|
if (!validTriggers.has(trigger)) {
|
|
10236
10448
|
warn(`unknown trigger "${trigger}" โ ์ฌ์ฉ ๊ฐ๋ฅ: ${[...validTriggers].join(', ')}. ๊ทธ๋๋ก ๋ฑ๋กํฉ๋๋ค.`);
|
|
10237
10449
|
}
|
|
10238
|
-
const id = nextRuleId(root);
|
|
10239
10450
|
const rules = readRules(root);
|
|
10451
|
+
// 1.9.212: ๋ฉฑ๋ฑ์ฑ ๋ณด์ฅ โ ๊ฐ์ description + trigger + active ์ํ ์ด๋ฏธ ์กด์ฌ ์ skip (์ฌ์ฉ์ ๋ช
์)
|
|
10452
|
+
if (!has('--force')) {
|
|
10453
|
+
const dup = rules.find(r => r.rule === description && r.trigger === trigger && r.status === 'active');
|
|
10454
|
+
if (dup) {
|
|
10455
|
+
ok(`rule exists (skip): ${dup.id} [${dup.trigger}] ${description} (--force ๋ก ๋ฎ์ด์ฐ๊ธฐ)`);
|
|
10456
|
+
return;
|
|
10457
|
+
}
|
|
10458
|
+
}
|
|
10459
|
+
const id = nextRuleId(root);
|
|
10240
10460
|
rules.push({ id, trigger, rule: description, added: today(), status: 'active', lastVerified: '-' });
|
|
10241
10461
|
writeRules(root, rules);
|
|
10242
10462
|
ok(`rule added: ${id} [${trigger}] ${description}`);
|
|
@@ -16538,6 +16758,8 @@ async function main() {
|
|
|
16538
16758
|
if (cmd === 'workspace-dir') return workspaceDirCmd(arg('--path', process.cwd()), args[1]);
|
|
16539
16759
|
// 1.9.211: leerness migrate-workspace-dir โ .harness โ .leerness ๋ง์ด๊ทธ๋ ์ด์
(์ฌ์ฉ์ ๋ช
์)
|
|
16540
16760
|
if (cmd === 'migrate-workspace-dir') return migrateWorkspaceDirCmd(arg('--path', process.cwd()));
|
|
16761
|
+
// 1.9.212: leerness idempotency audit โ ๋ฉฑ๋ฑ์ฑ ์๋ฐ ํ์ง (์ฌ์ฉ์ ๋ช
์)
|
|
16762
|
+
if (cmd === 'idempotency') return idempotencyCmd(arg('--path', process.cwd()), args[1]);
|
|
16541
16763
|
if (cmd === 'rule' && args[1] === 'add') return ruleAdd(arg('--path', process.cwd()), args.slice(2).filter(x => !x.startsWith('-')).join(' '));
|
|
16542
16764
|
if (cmd === 'rule' && args[1] === 'list') return ruleList(arg('--path', process.cwd()));
|
|
16543
16765
|
if (cmd === 'rule' && args[1] === 'remove') return ruleRemove(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.212",
|
|
4
4
|
"description": "Leerness: ๋นํ๊ดด ๋ง์ด๊ทธ๋ ์ด์
, ์๋ ๋ฒ์ ๊ฐ์งยท์
๋ฐ์ดํธ, ๊ณํ/์งํ/ํธ๋์คํ ์๋ํ, ๊ฒ์ผ๋ฆยท์ํฌ๋ฆฟยท์ธ์ฝ๋ฉ ์๋ ๊ฐ๋, Claude Code ์ฌ๋์ ํตํฉ์ ๊ฐ์ถ ํ๊ตญ์ด ์ฐ์ AI ๊ฐ๋ฐ ํ๋ค์ค.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"leerness",
|