feat(growth): 주간 성장 사이클 자동화 + 텔레그램 양방향 HITL (v2.2.220)
P4 — Self-Evolving OS 폐루프 자동화: - growthCycleWatcher: 매주(기본 일 20:00 KST, 설정 가능) 자동으로 ① 골든셋 검색 평가(recall/MRR 주간 추이) ② 학습 큐 갱신(Need Engine) ③ 지식 노후 점검 ④ 성장 리포트 ⑤ 승인(approved)된 학습 큐 항목을 Research Agent 로 자동 실행(사이클당 최대 3건) ⑥ 요약 알림+텔레그램. 승인 자체는 여전히 사람 — Permission Based Learning 유지, 자동화되는 것은 '승인된 것의 실행'뿐. 결과물은 기존 수동 명령과 동일 위치 (.astra/eval/, .astra/growth/) — 완전 호환. 수동 트리거 명령 (growthCycle.runNow) 제공. 단계별 독립 try/catch. P5 — 텔레그램 양방향 HITL: - /meet confirm 코어를 출력 중립 processConfirmDecisions 로 추출 (웹뷰·텔레그램 공용) — 핸들러는 위임 호출로 슬림화. - 텔레그램 인바운드에 confirm/pending(보류) 분기 — 회사 밖에서 "confirm 1=ok 2=6/20 3=skip" 회신으로 보류 액션 등록 완결. - 데일리 브리핑에 보류 목록 + 회신 안내 포함 — 아침 브리핑에서 바로 확정하는 흐름 완성. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -105,7 +105,22 @@ export async function buildBriefingText(context: vscode.ExtensionContext, ymd: s
|
||||
lines.push('', `🔗 *조건부 대기* (${conditional.length})`);
|
||||
for (const t of conditional.slice(0, 10)) lines.push(`· ${t.title}`);
|
||||
}
|
||||
if (!dueToday.length && !overdue.length && !events.length && !conditional.length) {
|
||||
// (3) /meet 등록 보류 — 텔레그램에서 바로 회신해 등록 완결 가능 (P5 HITL).
|
||||
let pendingCount = 0;
|
||||
try {
|
||||
const { loadPending } = await import('../datacollect/scheduling/meetRegistration');
|
||||
const pend = loadPending();
|
||||
if (pend && pend.items.length) {
|
||||
pendingCount = pend.items.length;
|
||||
lines.push('', `⏸ *회의 액션 보류* (${pend.items.length}) — 이 채팅에 \`confirm 1=ok 2=6/20 3=skip\` 으로 회신하면 등록됩니다 (목록: \`pending\`)`);
|
||||
for (const it of pend.items.slice(0, 8)) {
|
||||
const why = it.kind === 'undecided' ? '진행미정' : it.kind === 'nodate' ? '기한미정' : `조건부:${it.condition}`;
|
||||
lines.push(`· ${it.idx}. ${it.work} (${why})`);
|
||||
}
|
||||
}
|
||||
} catch { /* 보류 조회 실패는 브리핑 본 흐름에 영향 없음 */ }
|
||||
|
||||
if (!dueToday.length && !overdue.length && !events.length && !conditional.length && !pendingCount) {
|
||||
return null; // 알릴 것이 전혀 없음 — 발송 skip
|
||||
}
|
||||
} else if (!events.length) {
|
||||
|
||||
Reference in New Issue
Block a user