@wooojin/forgen 0.6.4 → 0.6.6
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +35 -0
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/cli.js +2 -2
- package/dist/core/block-cli.js +2 -4
- package/dist/core/dashboard.js +1 -1
- package/dist/core/explain-cli.js +3 -28
- package/dist/core/rate-limit-forecast.js +7 -1
- package/dist/core/state-gc.d.ts +14 -0
- package/dist/core/state-gc.js +47 -4
- package/dist/core/stats-cli.js +5 -5
- package/dist/core/statusline-cli.d.ts +24 -2
- package/dist/core/statusline-cli.js +125 -23
- package/dist/core/statusline-install.d.ts +8 -1
- package/dist/core/statusline-install.js +34 -3
- package/dist/engine/block-judge.js +4 -5
- package/dist/engine/context-signals.d.ts +20 -0
- package/dist/engine/context-signals.js +102 -0
- package/dist/engine/correction-cluster-runner.d.ts +3 -3
- package/dist/engine/correction-cluster-runner.js +48 -12
- package/dist/engine/correction-clustering.d.ts +27 -0
- package/dist/engine/correction-clustering.js +79 -3
- package/dist/engine/ko-colloquial.d.ts +13 -0
- package/dist/engine/ko-colloquial.js +45 -0
- package/dist/engine/lifecycle/lifecycle-cli.js +25 -5
- package/dist/engine/lifecycle/meta-reclassifier.d.ts +1 -0
- package/dist/engine/lifecycle/meta-reclassifier.js +3 -21
- package/dist/engine/lifecycle/rotated-logs.d.ts +18 -0
- package/dist/engine/lifecycle/rotated-logs.js +67 -0
- package/dist/engine/lifecycle/signals.d.ts +27 -1
- package/dist/engine/lifecycle/signals.js +55 -32
- package/dist/engine/lifecycle/types.d.ts +5 -0
- package/dist/engine/match-eval-log.d.ts +2 -0
- package/dist/engine/match-eval-log.js +1 -0
- package/dist/engine/ranking-pipeline.d.ts +9 -1
- package/dist/engine/ranking-pipeline.js +24 -2
- package/dist/engine/solution-format.d.ts +2 -0
- package/dist/engine/solution-format.js +6 -2
- package/dist/engine/solution-matcher.d.ts +5 -1
- package/dist/engine/solution-matcher.js +4 -2
- package/dist/hooks/solution-injector.js +7 -2
- package/dist/host/codex-hook-shim.d.ts +11 -0
- package/dist/host/codex-hook-shim.js +47 -0
- package/dist/store/rule-store.d.ts +10 -0
- package/dist/store/rule-store.js +26 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scripts/postinstall.js +12 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.6] — 2026-10-07 — 실사용 관측 반영: 소진 예측 · 로그 부채 · eval 격리 · 룰 병합 2차 · statusline 체인 · recall 입력 정리
|
|
11
|
+
|
|
12
|
+
배포 후 약 19시간 실사용 데이터로 관측하고, 드러난 결함과 남은 과제를 묶었다. Fable critic 통합 리뷰(조건부 승인) SEV-2 3건 반영.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- **소진 예측이 거의 안 뜨던 것.** 여러 세션(오래된 창 정보를 가진 세션 포함)의 샘플이 섞여 `resets_at` 변화마다 창이 끊겼다.
|
|
16
|
+
현재 창(resets_at 동일) 샘플만으로 기울기를 낸다. 실 샘플 리플레이: 표시 84 / 숨김 293 / 오경보 0.
|
|
17
|
+
- **`lifecycle-scan --apply` 가 사용자 룰의 주입 카운트를 0 으로 리셋하던 것.** 저장소에 커밋된 프로젝트 룰이 사용자 룰을 통째로
|
|
18
|
+
덮어썼다. 이제 정책 본문만 덮고 lifecycle 은 사용자 쪽 유지. `violation_count`/`bypass_count` 는 로그에서 파생해 `--apply` 로 동기화.
|
|
19
|
+
- **회전된 로그를 못 읽던 것.** 10MB 회전 직후 7d·30d 집계에서 기록이 사라졌다. 창 기반 리더가 창 안 회전본을 함께 읽고,
|
|
20
|
+
회전본은 로그당 최신 3개·60일로 보존 상한.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- **statusline 체인** — `forgen statusline install --chain`: claude-hud 등 기존 statusline 을 그대로 두고 그 아래에 forgen 줄만 붙인다
|
|
24
|
+
(같은 페이로드를 하위 명령에 전달, 1.5s 타임아웃 시 forgen 단독, 취소 시 하위 프로세스 정리). postinstall 이 체인을 보존.
|
|
25
|
+
- **eval 격리** — eval 러너 5곳의 자식 프로세스에 격리 `FORGEN_HOME` + `FORGEN_SYNTHETIC=1` 강제. 집계는 비-uuid 세션을 합성으로
|
|
26
|
+
제외(실데이터: 실세션 id 는 전부 uuid v4/v7, 비-uuid 41건은 전부 하네스 기록).
|
|
27
|
+
- **채굴 룰 2차 병합** — 카테고리를 넘어 같은 개념을 대표 policy 직접 유사도(≥0.4)로 묶고, 정책 상투어(사용자·명시적·항상 등)는
|
|
28
|
+
유사도에서 제외. 실 복사본 dry-run 9 → 4, 오병합 0, 이전 오탐 링크 재발 없음.
|
|
29
|
+
- **recall 입력 정리** — 한국어 회화체 잔여물 필터, 작업 중 파일·cwd 맥락 토큰(순위 가산만, 게이트 불변).
|
|
30
|
+
|
|
31
|
+
### 알려진 한계 (정직 표기)
|
|
32
|
+
- recall: 입력 정리만으로는 surfaced 가 늘지 않았다(실로그 리플레이 게이트 통과 34 → 34). 병목은 솔루션 태그 어휘 — 별도 과제.
|
|
33
|
+
- Stop 룰 발동 조건은 이번에 바꾸지 않았다. 30일 대화 2,216턴 분석에서 발동률 1.4%, 제외 조건이 메시지 전체를 봐서 매칭의 67%를
|
|
34
|
+
잘못 제외, 발동 후 절반 가까이가 "위반 없음" 자기 신고로 통과 — 룰별 재설계는 합의 후 진행.
|
|
35
|
+
|
|
36
|
+
## [0.6.5] — 2026-10-07 — Codex 훅 shim 전환을 설치 시 자동으로
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
- `npm i -g @wooojin/forgen` 의 postinstall 이 `~/.codex/hooks.json` 에 이전 형식(node + 절대경로) forgen 훅이 있으면 **자동으로**
|
|
40
|
+
고정 shim 형식으로 전환한다 — `forgen install codex` 를 따로 칠 필요 없음. forgen 훅 명령만 제자리에서 바꾸고 그룹·훅 순서
|
|
41
|
+
(Codex trust 키), 사용자 훅, config.toml 은 그대로. 백업 `hooks.json.bak-pre-shim`. 실 hooks.json 복사본에서 22개 전환·실행 확인.
|
|
42
|
+
- Codex 의 trust 승인 자체는 자동화하지 않는다(사용자 승인을 대신 기록하면 Codex 보안 정책 우회). 전환 직후 `/hooks` 에서 마지막
|
|
43
|
+
1회만 승인하면 이후 업그레이드·nvm 전환은 재승인 불필요.
|
|
44
|
+
|
|
10
45
|
## [0.6.4] — 2026-10-07 — 설치·실행 편의: statusline 자동 등록 · Codex 훅 재승인 제거(고정 shim) · Node 22 함정 안내
|
|
11
46
|
|
|
12
47
|
### Added
|
package/README.ja.md
CHANGED
|
@@ -549,7 +549,7 @@ forgen status --blocks [N] # 最近の実ブロック + レシート: 一
|
|
|
549
549
|
forgen block <id> --ok | --fp # ブロックを判定 (自動 Haiku 判定を上書き) — ルール別 precision に反映
|
|
550
550
|
forgen status --turn # 今ターンに関連するルールと、各ルールが生まれた修正(日付・種類・あなたの発言)
|
|
551
551
|
forgen statusline # 3行: モデル · パス(ブランチ) / ctx·5h·7d バー + 枯渇予測 · $ / forgen: 関連ルール · ブロック · surfaced
|
|
552
|
-
forgen statusline install [--force] # ~/.claude/settings.json に statusline を登録(絶対パス, nvm セーフ); --force はカスタム値を置換(バックアップ保持)
|
|
552
|
+
forgen statusline install [--force|--chain] # ~/.claude/settings.json に statusline を登録(絶対パス, nvm セーフ); --force はカスタム値を置換(バックアップ保持); --chain は既存を残したまま forgen の行だけを後ろに追加
|
|
553
553
|
```
|
|
554
554
|
|
|
555
555
|
### 知識管理
|
package/README.ko.md
CHANGED
|
@@ -534,7 +534,7 @@ forgen status --blocks [N] # 최근 실제 차단 + 영수증: 매칭 프
|
|
|
534
534
|
forgen block <id> --ok | --fp # 차단 판정 (자동 Haiku 판정을 덮어씀) — 규칙별 precision 에 반영
|
|
535
535
|
forgen status --turn # 이번 턴 관련 규칙과 각 규칙이 생긴 교정(날짜·종류·당신의 말)
|
|
536
536
|
forgen statusline # 3줄: 모델 · 경로(브랜치) / ctx·5h·7d 바 + 소진 예측 · $ / forgen: 관련 규칙 · 차단 · surfaced
|
|
537
|
-
forgen statusline install [--force] # ~/.claude/settings.json 에 statusline 등록(절대 경로, nvm 안전); --force 는 커스텀 값을 교체(백업 보관)
|
|
537
|
+
forgen statusline install [--force|--chain] # ~/.claude/settings.json 에 statusline 등록(절대 경로, nvm 안전); --force 는 커스텀 값을 교체(백업 보관); --chain 은 기존 것을 유지하고 그 뒤에 forgen 줄만 덧붙임
|
|
538
538
|
```
|
|
539
539
|
|
|
540
540
|
### 지식 관리
|
package/README.md
CHANGED
|
@@ -731,7 +731,7 @@ forgen status --blocks [N] # Recent real blocks with receipt: matched fragm
|
|
|
731
731
|
forgen block <id> --ok | --fp # Judge a block (overrides the automatic Haiku verdict); feeds per-rule precision
|
|
732
732
|
forgen status --turn # Rules relevant to the current turn, each with the correction (date/kind/your words) it came from
|
|
733
733
|
forgen statusline # 3 lines: model · path(branch) / ctx·5h·7d bars + exhaustion forecast · $ / forgen: related rules · blocks · surfaced
|
|
734
|
-
forgen statusline install [--force] # Register the statusline in ~/.claude/settings.json (absolute path, nvm-safe); --force replaces a custom one (backup kept)
|
|
734
|
+
forgen statusline install [--force|--chain] # Register the statusline in ~/.claude/settings.json (absolute path, nvm-safe); --force replaces a custom one (backup kept); --chain keeps it and appends forgen's line after it
|
|
735
735
|
```
|
|
736
736
|
|
|
737
737
|
### Knowledge management
|
package/README.zh.md
CHANGED
|
@@ -518,7 +518,7 @@ forgen status --blocks [N] # 最近真实拦截 + 回执: 匹配片段、24
|
|
|
518
518
|
forgen block <id> --ok | --fp # 判定一次拦截 (覆盖自动 Haiku 判定) — 计入规则级 precision
|
|
519
519
|
forgen status --turn # 本轮相关规则,以及每条规则来源的纠正(日期·类型·你的原话)
|
|
520
520
|
forgen statusline # 3 行: 模型 · 路径(分支) / ctx·5h·7d 条形 + 耗尽预测 · $ / forgen: 相关规则 · 拦截 · surfaced
|
|
521
|
-
forgen statusline install [--force] # 在 ~/.claude/settings.json 注册 statusline(绝对路径, nvm 安全); --
|
|
521
|
+
forgen statusline install [--force|--chain] # 在 ~/.claude/settings.json 注册 statusline(绝对路径, nvm 安全); --chain 保留现有 statusline 并在其后追加 forgen 行
|
|
522
522
|
```
|
|
523
523
|
|
|
524
524
|
### 知识管理
|
package/dist/cli.js
CHANGED
|
@@ -120,7 +120,7 @@ const commands = [
|
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
name: 'statusline',
|
|
123
|
-
description: 'Compact HUD for Claude Code statusLine (reads stdin JSON). `statusline install [--force]` registers it in settings.json',
|
|
123
|
+
description: 'Compact HUD for Claude Code statusLine (reads stdin JSON). `statusline install [--force|--chain]` registers it in settings.json; `statusline --after "<cmd>"` appends the forgen line after another statusline',
|
|
124
124
|
handler: async (args) => {
|
|
125
125
|
if (args[0] === 'install') {
|
|
126
126
|
const { handleStatuslineInstall } = await import('./core/statusline-install.js');
|
|
@@ -128,7 +128,7 @@ const commands = [
|
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
const { handleStatusline } = await import('./core/statusline-cli.js');
|
|
131
|
-
await handleStatusline();
|
|
131
|
+
await handleStatusline(args);
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
134
|
{
|
package/dist/core/block-cli.js
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* forgen block <id|prefix> --ok | --fp [--reason "..."] (ADR-017 D1)
|
|
3
3
|
* 사용자 판정 — 자동(Haiku) 판정을 덮어쓴다. id 는 violation_id 전체 또는 앞 8자 이상 prefix.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
6
|
-
import { STATE_DIR } from './paths.js';
|
|
7
|
-
import { readJsonlSafe, setVerdict, readReceipt, effectiveVerdicts } from '../engine/lifecycle/signals.js';
|
|
5
|
+
import { readViolationsWindow, ROTATED_KEEP_DAYS, setVerdict, readReceipt, effectiveVerdicts } from '../engine/lifecycle/signals.js';
|
|
8
6
|
export async function handleBlock(args) {
|
|
9
7
|
const id = args.find((a) => !a.startsWith('--'));
|
|
10
8
|
const ok = args.includes('--ok');
|
|
@@ -20,7 +18,7 @@ export async function handleBlock(args) {
|
|
|
20
18
|
console.log(`invalid id: ${id}`);
|
|
21
19
|
return;
|
|
22
20
|
}
|
|
23
|
-
const all =
|
|
21
|
+
const all = readViolationsWindow(ROTATED_KEEP_DAYS);
|
|
24
22
|
const matches = all.filter((v) => typeof v.violation_id === 'string' && v.violation_id.startsWith(id));
|
|
25
23
|
if (matches.length === 0) {
|
|
26
24
|
console.log(`no block with id ${id}. See: forgen status --blocks 5`);
|
package/dist/core/dashboard.js
CHANGED
|
@@ -119,7 +119,7 @@ export function collectKnowledgeOverview() {
|
|
|
119
119
|
}
|
|
120
120
|
/** Collect injection activity from match-eval-log. */
|
|
121
121
|
export function collectInjectionActivity() {
|
|
122
|
-
const records = readMatchEvalLog();
|
|
122
|
+
const records = readMatchEvalLog().filter((r) => r.synthetic !== true);
|
|
123
123
|
// Recent injections (last 10)
|
|
124
124
|
const sorted = [...records].sort((a, b) => b.ts.localeCompare(a.ts));
|
|
125
125
|
const recentInjections = sorted.slice(0, 10).flatMap(r => r.rankedTopN.map(name => ({ name, ts: r.ts, source: r.source }))).slice(0, 10);
|
package/dist/core/explain-cli.js
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Shows: what rule fired, why, what Claude said, and how to resolve.
|
|
5
5
|
*/
|
|
6
|
-
import * as fs from 'node:fs';
|
|
7
6
|
import * as path from 'node:path';
|
|
8
7
|
import { STATE_DIR } from './paths.js';
|
|
9
|
-
import { isRealBlock, effectiveVerdicts, readReceipt } from '../engine/lifecycle/signals.js';
|
|
8
|
+
import { readJsonlWindow, ROTATED_KEEP_DAYS, isRealBlock, effectiveVerdicts, readReceipt } from '../engine/lifecycle/signals.js';
|
|
10
9
|
const isTTY = process.stdout.isTTY;
|
|
11
10
|
const C = {
|
|
12
11
|
reset: isTTY ? '\x1b[0m' : '',
|
|
@@ -19,34 +18,10 @@ const C = {
|
|
|
19
18
|
magenta: isTTY ? '\x1b[35m' : '',
|
|
20
19
|
};
|
|
21
20
|
function readViolations() {
|
|
22
|
-
|
|
23
|
-
if (!fs.existsSync(p))
|
|
24
|
-
return [];
|
|
25
|
-
const out = [];
|
|
26
|
-
for (const line of fs.readFileSync(p, 'utf-8').split('\n')) {
|
|
27
|
-
if (!line.trim())
|
|
28
|
-
continue;
|
|
29
|
-
try {
|
|
30
|
-
out.push(JSON.parse(line));
|
|
31
|
-
}
|
|
32
|
-
catch { /* skip */ }
|
|
33
|
-
}
|
|
34
|
-
return out;
|
|
21
|
+
return readJsonlWindow(path.join(STATE_DIR, 'enforcement', 'violations.jsonl'), ROTATED_KEEP_DAYS);
|
|
35
22
|
}
|
|
36
23
|
function readAcknowledgments() {
|
|
37
|
-
|
|
38
|
-
if (!fs.existsSync(p))
|
|
39
|
-
return [];
|
|
40
|
-
const out = [];
|
|
41
|
-
for (const line of fs.readFileSync(p, 'utf-8').split('\n')) {
|
|
42
|
-
if (!line.trim())
|
|
43
|
-
continue;
|
|
44
|
-
try {
|
|
45
|
-
out.push(JSON.parse(line));
|
|
46
|
-
}
|
|
47
|
-
catch { /* skip */ }
|
|
48
|
-
}
|
|
49
|
-
return out;
|
|
24
|
+
return readJsonlWindow(path.join(STATE_DIR, 'enforcement', 'acknowledgments.jsonl'), ROTATED_KEEP_DAYS);
|
|
50
25
|
}
|
|
51
26
|
function formatTime(iso) {
|
|
52
27
|
try {
|
|
@@ -166,7 +166,13 @@ export function forecastWindow(w, samples, nowMs, current) {
|
|
|
166
166
|
return null;
|
|
167
167
|
if (current.resets_at !== null && current.resets_at * 1000 < nowMs)
|
|
168
168
|
return null;
|
|
169
|
-
|
|
169
|
+
// 실사용 관측(2026-10-07): 여러 세션·계정의 샘플이 섞여 들어온다(예: 7월 창 정보를 가진 오래된 세션). 시간순으로
|
|
170
|
+
// resets_at 변화마다 끊으면 섞인 샘플 하나가 창을 계속 리셋해 예측이 거의 안 뜬다 → **현재 창(resets_at 동일)
|
|
171
|
+
// 샘플만** 골라 그 안에서 하락 지점만 경계로 본다.
|
|
172
|
+
const sameWindow = current.resets_at === null
|
|
173
|
+
? samples.filter((s) => s.resets_at === null)
|
|
174
|
+
: samples.filter((s) => s.resets_at === current.resets_at);
|
|
175
|
+
const tail = currentWindowTail([...sameWindow.filter((s) => s.t !== current.t), current]);
|
|
170
176
|
const last = current;
|
|
171
177
|
const resetsAt = last.resets_at !== null ? last.resets_at * 1000 : null;
|
|
172
178
|
const base = {
|
package/dist/core/state-gc.d.ts
CHANGED
|
@@ -27,6 +27,20 @@ export declare function rotateAppendOnlyLogs(opts?: {
|
|
|
27
27
|
stateDir?: string;
|
|
28
28
|
maxBytes?: number;
|
|
29
29
|
}): RotateReport;
|
|
30
|
+
/**
|
|
31
|
+
* enforcement 회전본 보존 상한: 로그당 최신 ROTATED_KEEP_MAX(3)개만, 그리고 mtime 이
|
|
32
|
+
* ROTATED_KEEP_DAYS(60)일 이내인 것만 남긴다. 현재(활성) 파일은 건드리지 않는다.
|
|
33
|
+
*/
|
|
34
|
+
export declare function pruneRotatedEnforcementLogs(opts?: {
|
|
35
|
+
stateDir?: string;
|
|
36
|
+
dryRun?: boolean;
|
|
37
|
+
now?: number;
|
|
38
|
+
}): {
|
|
39
|
+
scanned: number;
|
|
40
|
+
pruned: number;
|
|
41
|
+
bytes: number;
|
|
42
|
+
sample: string[];
|
|
43
|
+
};
|
|
30
44
|
/**
|
|
31
45
|
* Prune session-scoped files older than `retentionMs` from the state and
|
|
32
46
|
* outcomes directories. Defaults to a dry-run so callers must opt-in to
|
package/dist/core/state-gc.js
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import * as fs from 'node:fs';
|
|
19
19
|
import * as path from 'node:path';
|
|
20
20
|
import { STATE_DIR, OUTCOMES_DIR } from './paths.js';
|
|
21
|
+
import { listRotated, ROTATED_KEEP_MAX, ROTATED_KEEP_DAYS } from '../engine/lifecycle/rotated-logs.js';
|
|
21
22
|
/** Filename prefixes that identify session-scoped ephemeral files. */
|
|
22
23
|
const SESSION_SCOPED_PREFIXES = [
|
|
23
24
|
'active-agents-',
|
|
@@ -153,6 +154,47 @@ export function rotateAppendOnlyLogs(opts = {}) {
|
|
|
153
154
|
}
|
|
154
155
|
return out;
|
|
155
156
|
}
|
|
157
|
+
/** rotateIfBig 가 `<name>.<timestamp>` 로 남기는 enforcement jsonl — 영구 보존되던 회전본의 정리 대상. */
|
|
158
|
+
const ENFORCEMENT_ROTATED_LOGS = [
|
|
159
|
+
'violations.jsonl',
|
|
160
|
+
'verdicts.jsonl',
|
|
161
|
+
'checks.jsonl',
|
|
162
|
+
'acknowledgments.jsonl',
|
|
163
|
+
'drift.jsonl',
|
|
164
|
+
'bypass.jsonl',
|
|
165
|
+
];
|
|
166
|
+
/**
|
|
167
|
+
* enforcement 회전본 보존 상한: 로그당 최신 ROTATED_KEEP_MAX(3)개만, 그리고 mtime 이
|
|
168
|
+
* ROTATED_KEEP_DAYS(60)일 이내인 것만 남긴다. 현재(활성) 파일은 건드리지 않는다.
|
|
169
|
+
*/
|
|
170
|
+
export function pruneRotatedEnforcementLogs(opts = {}) {
|
|
171
|
+
const stateDir = opts.stateDir ?? STATE_DIR;
|
|
172
|
+
const dryRun = opts.dryRun ?? true;
|
|
173
|
+
const cutoff = (opts.now ?? Date.now()) - ROTATED_KEEP_DAYS * 24 * 60 * 60 * 1000;
|
|
174
|
+
const out = { scanned: 0, pruned: 0, bytes: 0, sample: [] };
|
|
175
|
+
for (const name of ENFORCEMENT_ROTATED_LOGS) {
|
|
176
|
+
const rotated = listRotated(path.join(stateDir, 'enforcement', name)); // 오래된 것 먼저
|
|
177
|
+
out.scanned += rotated.length;
|
|
178
|
+
const keep = new Set(rotated.slice(-ROTATED_KEEP_MAX).filter((r) => r.mtimeMs >= cutoff).map((r) => r.path));
|
|
179
|
+
for (const r of rotated) {
|
|
180
|
+
if (keep.has(r.path))
|
|
181
|
+
continue;
|
|
182
|
+
if (!dryRun) {
|
|
183
|
+
try {
|
|
184
|
+
fs.unlinkSync(r.path);
|
|
185
|
+
}
|
|
186
|
+
catch {
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
out.pruned++;
|
|
191
|
+
out.bytes += r.size;
|
|
192
|
+
if (out.sample.length < 20)
|
|
193
|
+
out.sample.push(path.basename(r.path));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return out;
|
|
197
|
+
}
|
|
156
198
|
/**
|
|
157
199
|
* Prune session-scoped files older than `retentionMs` from the state and
|
|
158
200
|
* outcomes directories. Defaults to a dry-run so callers must opt-in to
|
|
@@ -172,13 +214,14 @@ export function pruneState(opts = {}) {
|
|
|
172
214
|
// ADR-002 block-count directory — session-scoped per rule. F-M block-count GC.
|
|
173
215
|
const blockCountDir = path.join(stateDir, 'enforcement', 'block-count');
|
|
174
216
|
const blockCounters = pruneDir(blockCountDir, cutoff, dryRun, (n) => n.endsWith('.json'));
|
|
217
|
+
const rotatedLogs = pruneRotatedEnforcementLogs({ stateDir, dryRun, now });
|
|
175
218
|
return {
|
|
176
|
-
scanned: state.scanned + outcomes.scanned + blockCounters.scanned,
|
|
177
|
-
pruned: state.pruned + outcomes.pruned + blockCounters.pruned,
|
|
178
|
-
bytesFreed: state.bytes + outcomes.bytes + blockCounters.bytes,
|
|
219
|
+
scanned: state.scanned + outcomes.scanned + blockCounters.scanned + rotatedLogs.scanned,
|
|
220
|
+
pruned: state.pruned + outcomes.pruned + blockCounters.pruned + rotatedLogs.pruned,
|
|
221
|
+
bytesFreed: state.bytes + outcomes.bytes + blockCounters.bytes + rotatedLogs.bytes,
|
|
179
222
|
retentionDays: Math.round(retentionMs / (24 * 60 * 60 * 1000)),
|
|
180
223
|
dryRun,
|
|
181
|
-
sample: [...state.sample, ...outcomes.sample, ...blockCounters.sample].slice(0, 20),
|
|
224
|
+
sample: [...state.sample, ...outcomes.sample, ...blockCounters.sample, ...rotatedLogs.sample].slice(0, 20),
|
|
182
225
|
};
|
|
183
226
|
}
|
|
184
227
|
/**
|
package/dist/core/stats-cli.js
CHANGED
|
@@ -10,7 +10,7 @@ import * as path from 'node:path';
|
|
|
10
10
|
import { loadAllRules } from '../store/rule-store.js';
|
|
11
11
|
import { loadAllEvidence } from '../store/evidence-store.js';
|
|
12
12
|
import { STATE_DIR, ME_DIR } from './paths.js';
|
|
13
|
-
import { isRealBlock, isConfirmedBypass,
|
|
13
|
+
import { readJsonlWindow, isRealBlock, isConfirmedBypass, isSyntheticEntry, precisionByRule, readVerdicts } from '../engine/lifecycle/signals.js';
|
|
14
14
|
import { computeFixFeatRatio, formatFixRatio } from './git-stats.js';
|
|
15
15
|
// v0.4.1 격리 fix: 이전에는 os.homedir() 직접 사용해서 FORGEN_HOME env 로
|
|
16
16
|
// 홈 격리해도 이 파일의 경로는 여전히 실 홈 가리켰음. paths.ts 상수 import.
|
|
@@ -188,7 +188,7 @@ export function computeStats() {
|
|
|
188
188
|
const correctionsTotal = corrections.length;
|
|
189
189
|
const cutoff7d = Date.now() - 7 * MS_PER_DAY;
|
|
190
190
|
const corrections7d = corrections.filter((e) => Date.parse(e.timestamp) >= cutoff7d).length;
|
|
191
|
-
const violations =
|
|
191
|
+
const violations = readJsonlWindow(path.join(ENFORCEMENT_DIR, 'violations.jsonl'), 30);
|
|
192
192
|
// v0.4.1 historical false-positive 제거: pre-0.4.1 bypass-detector 가 Write/Edit
|
|
193
193
|
// content 의 quote 본문까지 raw 매칭해서 bypass 로 오기록. 실 관찰: L1-no-rm-rf
|
|
194
194
|
// -unconfirmed bypass 20건 중 Write/Edit 15건. stats 표시는 **실 실행 맥락** 인
|
|
@@ -196,8 +196,8 @@ export function computeStats() {
|
|
|
196
196
|
// ADR-017 D1: bypass.jsonl(자연어 휴리스틱)은 더 이상 읽지 않는다 — 실측 전량 오탐, 실 우회 0건.
|
|
197
197
|
// "Bypass" 는 FORGEN_USER_CONFIRMED=1 명시 우회(kind:'bypass_confirmed')만 센다.
|
|
198
198
|
const bypass = violations.filter(isConfirmedBypass);
|
|
199
|
-
const drift =
|
|
200
|
-
const acks =
|
|
199
|
+
const drift = readJsonlWindow(path.join(ENFORCEMENT_DIR, 'drift.jsonl'), 30);
|
|
200
|
+
const acks = readJsonlWindow(path.join(ENFORCEMENT_DIR, 'acknowledgments.jsonl'), 30);
|
|
201
201
|
// R9-PA2: violations 는 'block' (stop-guard/post-tool) + 'deny' (pre-tool Mech-A)
|
|
202
202
|
// + 'correction' (메타가드 advise) + 'bypass_confirmed' (사용자 명시 우회) 혼재. 사용자 관점에서 "Block" 은 앞의 2종이며
|
|
203
203
|
// correction 은 제외해야 ack ratio 가 의미를 갖는다. legacy-undefined 엔트리도 포함.
|
|
@@ -210,7 +210,7 @@ export function computeStats() {
|
|
|
210
210
|
correctionsTotal,
|
|
211
211
|
corrections7d,
|
|
212
212
|
blocks7d: countWithin(realBlocks, 7),
|
|
213
|
-
syntheticExcluded7d: countWithin(violations.filter((e) =>
|
|
213
|
+
syntheticExcluded7d: countWithin(violations.filter((e) => isSyntheticEntry(e)), 7),
|
|
214
214
|
acks7d: countWithin(acks, 7),
|
|
215
215
|
bypass7d: countWithin(bypass, 7),
|
|
216
216
|
drift7d: countWithin(drift, 7),
|
|
@@ -76,10 +76,32 @@ export declare function cachePathFor(sessionId: string | undefined): string;
|
|
|
76
76
|
* @param opts.currentAlreadyAppended handleStatuslineWith 가 이번 샘플을 파일에 이미 append 했으면 true
|
|
77
77
|
* (중복 카운트 방지).
|
|
78
78
|
*/
|
|
79
|
+
export declare function renderStatuslineParts(payload: StdinPayload, nowMs?: number, opts?: {
|
|
80
|
+
useForgenCache?: boolean;
|
|
81
|
+
currentAlreadyAppended?: boolean;
|
|
82
|
+
}): {
|
|
83
|
+
header: string;
|
|
84
|
+
usage: string | null;
|
|
85
|
+
forgen: string | null;
|
|
86
|
+
};
|
|
79
87
|
export declare function renderStatusline(payload: StdinPayload, nowMs?: number, opts?: {
|
|
80
88
|
useForgenCache?: boolean;
|
|
81
89
|
currentAlreadyAppended?: boolean;
|
|
82
90
|
}): string[];
|
|
83
|
-
export
|
|
91
|
+
export interface StatuslineChainOptions {
|
|
92
|
+
/** 먼저 실행해 출력을 앞에 붙일 다른 statusline 명령(`sh -c`). */
|
|
93
|
+
after?: string;
|
|
94
|
+
/** 'all' 이면 forgen 3줄 전부, 기본은 forgen 데이터 줄만. */
|
|
95
|
+
forgenLines?: 'forgen' | 'all';
|
|
96
|
+
timeoutMs?: number;
|
|
97
|
+
}
|
|
98
|
+
/** `--after <cmd>` / `--forgen-lines all` 파싱. 값 없는 `--after` 는 무시. */
|
|
99
|
+
export declare function parseStatuslineArgs(args: string[]): StatuslineChainOptions;
|
|
100
|
+
/**
|
|
101
|
+
* 하위 statusline 명령 실행 — 같은 페이로드 JSON 을 stdin 으로 주고 stdout 을 돌려준다.
|
|
102
|
+
* 타임아웃·비정상 종료·빈 출력이면 null(호출 측이 forgen 단독 출력으로 폴백). stderr 는 버린다.
|
|
103
|
+
*/
|
|
104
|
+
export declare function runChainedCommand(cmd: string, payload: StdinPayload, timeoutMs?: number): Promise<string | null>;
|
|
105
|
+
export declare function handleStatusline(args?: string[]): Promise<void>;
|
|
84
106
|
/** stdin 읽기를 분리한 본체 — 테스트는 페이로드를 직접 넣는다. */
|
|
85
|
-
export declare function handleStatuslineWith(payload: StdinPayload, nowMs?: number): Promise<void>;
|
|
107
|
+
export declare function handleStatuslineWith(payload: StdinPayload, nowMs?: number, chain?: StatuslineChainOptions): Promise<void>;
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
import * as fs from 'node:fs';
|
|
22
22
|
import * as path from 'node:path';
|
|
23
23
|
import * as os from 'node:os';
|
|
24
|
-
import { execSync } from 'node:child_process';
|
|
24
|
+
import { execSync, spawn } from 'node:child_process';
|
|
25
25
|
import { loadActiveRules } from '../store/rule-store.js';
|
|
26
26
|
import { STATE_DIR } from './paths.js';
|
|
27
27
|
import { computeStats } from './stats-cli.js';
|
|
28
|
-
import { isRealBlock } from '../engine/lifecycle/signals.js';
|
|
28
|
+
import { isRealBlock, logFilesWithin } from '../engine/lifecycle/signals.js';
|
|
29
29
|
import { sanitizeId } from '../hooks/shared/sanitize-id.js';
|
|
30
30
|
import { readTurnRules } from '../engine/rule-relevance.js';
|
|
31
31
|
import { samplesFromPayload, appendSamples, readSamples, compactSamples, forecastAll, fmtClock, } from './rate-limit-forecast.js';
|
|
@@ -207,18 +207,21 @@ export function buildForgenLine(sessionId) {
|
|
|
207
207
|
function countSessionBlocks(sessionId) {
|
|
208
208
|
try {
|
|
209
209
|
const p = path.join(STATE_DIR, 'enforcement', 'violations.jsonl');
|
|
210
|
-
if (!fs.existsSync(p))
|
|
211
|
-
return 0;
|
|
212
210
|
let n = 0;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
|
|
211
|
+
// 세션은 회전 경계를 넘을 수 있다 — 현재 파일 + 최근 2일 안 회전본.
|
|
212
|
+
for (const f of logFilesWithin(p, 2)) {
|
|
213
|
+
if (!fs.existsSync(f))
|
|
214
|
+
continue;
|
|
215
|
+
for (const line of fs.readFileSync(f, 'utf-8').split('\n')) {
|
|
216
|
+
if (!line.includes(sessionId))
|
|
217
|
+
continue; // 빠른 선별
|
|
218
|
+
try {
|
|
219
|
+
const e = JSON.parse(line);
|
|
220
|
+
if (e.session_id === sessionId && isRealBlock(e))
|
|
221
|
+
n++;
|
|
222
|
+
}
|
|
223
|
+
catch { /* skip */ }
|
|
220
224
|
}
|
|
221
|
-
catch { /* skip */ }
|
|
222
225
|
}
|
|
223
226
|
return n;
|
|
224
227
|
}
|
|
@@ -256,32 +259,114 @@ function writeForgenLineCache(sessionId, line) {
|
|
|
256
259
|
* @param opts.currentAlreadyAppended handleStatuslineWith 가 이번 샘플을 파일에 이미 append 했으면 true
|
|
257
260
|
* (중복 카운트 방지).
|
|
258
261
|
*/
|
|
259
|
-
export function
|
|
262
|
+
export function renderStatuslineParts(payload, nowMs = Date.now(), opts = {}) {
|
|
260
263
|
const cwd = payload.workspace?.current_dir ?? process.cwd();
|
|
261
264
|
const current = samplesFromPayload(payload.rate_limits, nowMs);
|
|
262
265
|
const history = readSamples(undefined, nowMs);
|
|
263
266
|
const all = opts.currentAlreadyAppended ? history : [...history, ...current];
|
|
264
267
|
const forecasts = forecastAll(all, nowMs, current);
|
|
265
268
|
// 오너 요청(2026-10-07): 3줄 — 모델·경로 / 사용량 바 / forgen.
|
|
266
|
-
const
|
|
269
|
+
const header = buildHeaderLine(payload, cwd);
|
|
267
270
|
const usage = buildUsageLine(payload, forecasts, nowMs);
|
|
268
|
-
if (usage)
|
|
269
|
-
lines.push(usage);
|
|
270
271
|
let forgenLine = opts.useForgenCache ? readForgenLineCached(payload.session_id, nowMs) : null;
|
|
271
272
|
if (forgenLine === null) {
|
|
272
273
|
forgenLine = buildForgenLine(payload.session_id);
|
|
273
274
|
if (forgenLine && opts.useForgenCache)
|
|
274
275
|
writeForgenLineCache(payload.session_id, forgenLine);
|
|
275
276
|
}
|
|
276
|
-
|
|
277
|
-
|
|
277
|
+
return { header, usage, forgen: forgenLine };
|
|
278
|
+
}
|
|
279
|
+
export function renderStatusline(payload, nowMs = Date.now(), opts = {}) {
|
|
280
|
+
const { header, usage, forgen } = renderStatuslineParts(payload, nowMs, opts);
|
|
281
|
+
const lines = [header];
|
|
282
|
+
if (usage)
|
|
283
|
+
lines.push(usage);
|
|
284
|
+
if (forgen)
|
|
285
|
+
lines.push(forgen);
|
|
278
286
|
return lines;
|
|
279
287
|
}
|
|
280
|
-
|
|
281
|
-
|
|
288
|
+
const CHAIN_TIMEOUT_MS = 1500;
|
|
289
|
+
/** `--after <cmd>` / `--forgen-lines all` 파싱. 값 없는 `--after` 는 무시. */
|
|
290
|
+
export function parseStatuslineArgs(args) {
|
|
291
|
+
const o = {};
|
|
292
|
+
for (let i = 0; i < args.length; i++) {
|
|
293
|
+
const a = args[i];
|
|
294
|
+
if (a === '--after' && args[i + 1] !== undefined)
|
|
295
|
+
o.after = args[++i];
|
|
296
|
+
else if (a.startsWith('--after='))
|
|
297
|
+
o.after = a.slice('--after='.length);
|
|
298
|
+
else if (a === '--forgen-lines' && args[i + 1] !== undefined)
|
|
299
|
+
o.forgenLines = args[++i] === 'all' ? 'all' : 'forgen';
|
|
300
|
+
else if (a.startsWith('--forgen-lines='))
|
|
301
|
+
o.forgenLines = a.slice('--forgen-lines='.length) === 'all' ? 'all' : 'forgen';
|
|
302
|
+
}
|
|
303
|
+
return o;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* 하위 statusline 명령 실행 — 같은 페이로드 JSON 을 stdin 으로 주고 stdout 을 돌려준다.
|
|
307
|
+
* 타임아웃·비정상 종료·빈 출력이면 null(호출 측이 forgen 단독 출력으로 폴백). stderr 는 버린다.
|
|
308
|
+
*/
|
|
309
|
+
export function runChainedCommand(cmd, payload, timeoutMs = CHAIN_TIMEOUT_MS) {
|
|
310
|
+
return new Promise((resolve) => {
|
|
311
|
+
let child;
|
|
312
|
+
try {
|
|
313
|
+
child = spawn('sh', ['-c', cmd], { stdio: ['pipe', 'pipe', 'ignore'], detached: true });
|
|
314
|
+
}
|
|
315
|
+
catch {
|
|
316
|
+
resolve(null);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
let out = '';
|
|
320
|
+
let done = false;
|
|
321
|
+
// critic v0.6.6: Claude Code 가 진행 중인 statusline 을 취소(SIGTERM)하면 detached 하위 그룹이 고아로 남았다 →
|
|
322
|
+
// 부모 종료 신호에서 하위 그룹을 함께 정리한다.
|
|
323
|
+
const killGroup = () => { try {
|
|
324
|
+
if (child.pid)
|
|
325
|
+
process.kill(-child.pid, 'SIGKILL');
|
|
326
|
+
}
|
|
327
|
+
catch { /* gone */ } };
|
|
328
|
+
const onSignal = (sig) => { killGroup(); process.exit(sig === 'SIGTERM' ? 143 : 130); };
|
|
329
|
+
process.once('SIGTERM', onSignal);
|
|
330
|
+
process.once('SIGINT', onSignal);
|
|
331
|
+
process.once('exit', killGroup);
|
|
332
|
+
const finish = (v) => {
|
|
333
|
+
if (done)
|
|
334
|
+
return;
|
|
335
|
+
done = true;
|
|
336
|
+
clearTimeout(timer);
|
|
337
|
+
process.removeListener('SIGTERM', onSignal);
|
|
338
|
+
process.removeListener('SIGINT', onSignal);
|
|
339
|
+
process.removeListener('exit', killGroup);
|
|
340
|
+
resolve(v);
|
|
341
|
+
};
|
|
342
|
+
const timer = setTimeout(() => {
|
|
343
|
+
try {
|
|
344
|
+
if (child.pid)
|
|
345
|
+
process.kill(-child.pid, 'SIGKILL');
|
|
346
|
+
}
|
|
347
|
+
catch {
|
|
348
|
+
try {
|
|
349
|
+
child.kill('SIGKILL');
|
|
350
|
+
}
|
|
351
|
+
catch { /* ignore */ }
|
|
352
|
+
}
|
|
353
|
+
finish(null);
|
|
354
|
+
}, timeoutMs);
|
|
355
|
+
child.stdout?.on('data', (d) => { out += d.toString(); });
|
|
356
|
+
child.on('error', () => finish(null));
|
|
357
|
+
child.on('close', (code) => finish(code === 0 && out.trim() ? out.replace(/\n+$/, '') : null));
|
|
358
|
+
child.stdin?.on('error', () => { });
|
|
359
|
+
try {
|
|
360
|
+
child.stdin?.end(JSON.stringify(payload));
|
|
361
|
+
}
|
|
362
|
+
catch { /* ignore */ }
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
export async function handleStatusline(args = []) {
|
|
366
|
+
await handleStatuslineWith(await readStdinJson(), Date.now(), parseStatuslineArgs(args));
|
|
282
367
|
}
|
|
283
368
|
/** stdin 읽기를 분리한 본체 — 테스트는 페이로드를 직접 넣는다. */
|
|
284
|
-
export async function handleStatuslineWith(payload, nowMs = Date.now()) {
|
|
369
|
+
export async function handleStatuslineWith(payload, nowMs = Date.now(), chain = {}) {
|
|
285
370
|
// (1) 세션별 모델 캐시 — Stop/SubagentStop 가드의 per-model 프로필 조회용. 캐시 판정 앞.
|
|
286
371
|
if (payload.session_id && payload.model?.id) {
|
|
287
372
|
const { cacheSessionModel } = await import('../checks/_shared/model-profile.js');
|
|
@@ -297,7 +382,24 @@ export async function handleStatuslineWith(payload, nowMs = Date.now()) {
|
|
|
297
382
|
appendSamples(samples);
|
|
298
383
|
}
|
|
299
384
|
// (3) 렌더 — 1줄 매번, 2줄 15초 캐시
|
|
300
|
-
const
|
|
301
|
-
|
|
385
|
+
const renderOpts = { useForgenCache: true, currentAlreadyAppended: samples.length > 0 };
|
|
386
|
+
if (chain.after) {
|
|
387
|
+
// 체인: 하위 출력을 먼저, forgen 은 데이터 줄만(1·2줄은 하위와 중복). 하위 실패 시 forgen 전체로 폴백.
|
|
388
|
+
const sub = await runChainedCommand(chain.after, payload, chain.timeoutMs);
|
|
389
|
+
if (sub !== null) {
|
|
390
|
+
console.log(sub);
|
|
391
|
+
if (chain.forgenLines === 'all') {
|
|
392
|
+
for (const line of renderStatusline(payload, nowMs, renderOpts))
|
|
393
|
+
console.log(line);
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
const { forgen } = renderStatuslineParts(payload, nowMs, renderOpts);
|
|
397
|
+
if (forgen)
|
|
398
|
+
console.log(forgen);
|
|
399
|
+
}
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
for (const line of renderStatusline(payload, nowMs, renderOpts))
|
|
302
404
|
console.log(line);
|
|
303
405
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* forgen statusline install [--force] — ~/.claude/settings.json 의 statusLine 을 forgen 으로 (ADR-017 후속, 2026-10-07)
|
|
2
|
+
* forgen statusline install [--force|--chain] — ~/.claude/settings.json 의 statusLine 을 forgen 으로 (ADR-017 후속, 2026-10-07)
|
|
3
3
|
*
|
|
4
4
|
* 왜 따로 있나: 오너 실측 — 다른 머신에서 statusLine 이 claude-hud 로 잡혀 있어 forgen statusline 이 한 번도 실행되지 않았고,
|
|
5
5
|
* `forgen install claude` 는 사용자 커스텀 statusLine 을 건드리지 않게 돼 있어 손으로 settings.json 을 고쳐야 했다.
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* 정책:
|
|
9
9
|
* - statusLine 이 없거나 forgen 소유(`forgen …` / `…/dist/cli.js statusline`)면 → 현재 패키지의 절대 경로로 갱신.
|
|
10
10
|
* - 커스텀(claude-hud 등)이면 → 기본은 건드리지 않고 안내만. `--force` 면 `statusLine_backup` 에 보관 후 교체.
|
|
11
|
+
* - `--chain`: 커스텀을 `forgen statusline --after '<원본>'` 으로 감싸 원본 출력 뒤에 forgen 데이터 줄만 덧붙인다(원본은 statusLine_backup).
|
|
11
12
|
* - 켜져 있는 세션도 settings.json 의 statusLine.command 변경은 즉시 반영된다(Claude Code 가 감시).
|
|
12
13
|
*/
|
|
13
14
|
export interface StatusLineInstallResult {
|
|
@@ -20,8 +21,14 @@ export interface StatusLineInstallResult {
|
|
|
20
21
|
/** 이 패키지의 cli.js 절대 경로로 만든 statusline 명령 — PATH/nvm 무관. */
|
|
21
22
|
export declare function forgenStatuslineCommand(): string;
|
|
22
23
|
export declare function isForgenStatusline(command: unknown): boolean;
|
|
24
|
+
/** POSIX 단일 인용 — 내부 `'` 는 `'\''` 로. `$(…)`·`"`·`\` 도 리터럴로 보존된다. */
|
|
25
|
+
export declare function shQuote(s: string): string;
|
|
26
|
+
/** 원본 statusLine 명령을 `--after` 로 감싼 forgen 체인 명령. */
|
|
27
|
+
export declare function forgenChainCommand(original: string): string;
|
|
28
|
+
export declare function isChainedStatusline(command: unknown): boolean;
|
|
23
29
|
export declare function installStatusline(opts?: {
|
|
24
30
|
force?: boolean;
|
|
31
|
+
chain?: boolean;
|
|
25
32
|
settingsPath?: string;
|
|
26
33
|
}): StatusLineInstallResult;
|
|
27
34
|
export declare function handleStatuslineInstall(args: string[]): Promise<void>;
|