Commit Graph

61 Commits

Author SHA1 Message Date
koriweb a52bf6ee85 feat: /stocks 판정 결정론화 + /meet 정확도 파이프라인 (v2.2.211)
/stocks judge — 조건 판정 정확도 (P2/P3/P4):
- criteriaEval.ts 신설: 8개 키워드 중 수치 기준 7개("5,800%" 파싱·임계값
  비교)와 충족/미충족 판정·투자성향별 대표 3개 선택을 코드로 결정론 계산.
  LLM 은 '기술력' 도메인 정성 판단(키워드 모호 시)과 근거 서술만 담당,
  실패 시 결정론 폴백 → judge 가 LLM 형식 오류로 실패하는 경로 제거.
- cmdJudge: 판정 전 Naver 실시간 펀더멘털 fetch(실패 시 저장값 폴백) +
  결과에 데이터 출처 표기.
- tests/stocksCriteria.test.ts: 사용자 실제 분류 패턴(마녀공장/기가비스/
  엔켐) 픽스처 8건 — 코드 판정이 기존 패턴과 일치함을 고정.

/meet — 할루시네이션·문맥 누락 (P1/P5/P6):
- 근거 인용 의무: 결정·액션마다 발언 원문 인용(근거: "…") — 인용 불가
  항목은 결정/액션 금지 (날조 구조적 억제).
- 60K 하드 자르기 폐지 → 12K 조각 추출(Map) + 병합(Reduce) 2단계.
  lost-in-the-middle·후반부 증발 해소, 커버리지 60K→144K자.
- g1nation.meetVerifyPass(기본 off): 결정·액션을 근거 소스와 LLM 대조해
  확인 불가 항목을 '⚠️ 검증 결과' 섹션으로 표시.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 18:51:54 +09:00
koriweb 6d06311d60 fix(lmstudio): 모델 전환 시 다른 모델 전부 자동 언로드 (v2.2.210)
VRAM 부족으로 12b 등 다른 모델 로드 실패하던 문제 강화.
- lifecycleManager.doSwitch: 추적 중인 currentModel 만이 아니라 listLoaded()
  기반으로 *로드된 모든 LLM* 을 타깃 전 언로드(VRAM 회수). draft 모델·임베딩
  모델은 보호. listLoaded 실패 시 기존 동작(tracked unload)으로 폴백.
- extension.ts: defaultModel 설정 변경(설정 패널/settings.json 포함) 시
  lifecycle.onModelSelected 호출 → 설정 패널 전환도 unload→load 발동.
- 테스트 FakeLMStudioClient 가 실제 로드 상태를 추적하도록 갱신.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 11:27:43 +09:00
g1nation 0a97324f1b feat: v2.2.92 → v2.2.158 — god-file 분해 + Stocks feature + 대화 연속성
R56–R59: agent.ts 2731→1529줄 god-file 분해 (25 modules)
  · attrParsers + LLM 메서드 8개 (callNonStreaming, streamChatOnce 등)
  · executeActions 415줄 → 8 handler 그룹 (file/run/list/brain/calendar/sheets/tasks)
  · handlePrompt 1100줄 → 7 phase 모듈 (system prompt + budget + autoContinue 등)

R50–R55: extension.ts 1145→349줄 (telegram/settings/provider commands 분리)

Stocks feature 신규: /stocks slash command (v2.2.152~158)
  · .astra/stocks.json 저장소 + Yahoo Finance 현재가 갱신
  · 8 키워드 필터 (ROE/성장성/유동성/수익성/영업효율/기술력/안정성/PBR)
  · Naver 시가총액 페이지 JSON API (m.stock.naver.com) 발굴
  · LLM Top 5 매력도 분석 + Telegram 자동 보고서
  · KST 09:00/15:00 watcher 자동 모니터링

대화 연속성 (v2.2.150~157):
  · [PRIOR TURN CONCLUSION] block 으로 직전 결론 anchor
  · thin follow-up 분류 → boilerplate 헤더 suppression
  · slash 명령 결과 chatHistory mirror (capture wrapper)
  · echo/parrot 금지 system prompt rule

기타: /stocks 슬래시 자동완성 dropdown UI, Naver JSON API 전환 (cheerio 제거)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 09:59:32 +09:00
g1nation 4153f640c2 feat: v2.2.83 → v2.2.91 — info prompt 강화 + 사용자 노출 설정 + 답변 포맷 정리
[v2.2.83] /youtube info 프롬프트 강화
- 비유 방향 보존 룰 (Hugging Face=자료실 같은 짝 뒤집기 방지)
- 신뢰도 라벨 4종 ([근거 명시] / [화자 주장] / [가정] / [정리자 추론])
- 타임스탬프 fail 룰 (인용·구간 요약 모두 mm:ss 필수)
- "정리자 노트" 별도 섹션으로 추론 격리

[v2.2.85] polishPersona self-check 5가지
- 정리·리뷰·요약 답변 출력 직전 머릿속 체크:
  (1) 사실 오류  (2) 없는 내용 추가  (3) 뉘앙스 유지
  (4) 중요도 비례  (5) 중복 제거

[v2.2.86] chunkedSwitchTokens 절대 임계값 게이트
- 입력 < 50k 토큰이면 키워드·길이 트리거 무시하고 단일 호출
- 큰 컨텍스트 모델(131k+)에서 chunked 과잉 발동 방지

[v2.2.87] MAX_SECTIONS 5→3 cap
- 총 호출 7회 → 5회 (outline + 3 section + polish)
- 사용자 피드백 "6+회는 과하다"

[v2.2.88] 이모지 사용 금지 룰
- polishPersona / directPersona / sectionPersona 모두 적용
- 사용자 피드백 "이모지는 시각 노이즈"

[v2.2.89] 사용자 노출 설정 두 항목
- chunkedMaxSections config 신규 (default 3, 1~10 clamp)
- MAX_SECTIONS_HARD_CEILING (10) 으로 안전망 격상
- Astra Settings 패널 "고급" 섹션에 두 슬라이더 노출

[v2.2.90] 가이드 문구 단순화
- "작은 모델은 낮추라" 문구 빼고 일관되게 50000 권장으로

[v2.2.91] 답변 포맷 가독성 fix
- persona 의 "TL;DR" 표현 전부 "한 줄 요약" 으로 단일화
- stripMarkdownFormatting 에 헤더 후 빈 줄 강제 삽입
  (marked.parse 가 라벨·본문을 별도 단락으로 인식 → 시각 분리)

[테스트] 400/400 통과 (resilience_stress + chunked flow + MAX_SECTIONS cap 등)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 14:12:56 +09:00
g1nation ded3eea7ce feat: v2.2.74 → v2.2.82 — chunked writer + 코드 리뷰 패치 + /youtube 확장
주요 변경:

[chunked writer 아키텍처 (v2.2.74~v2.2.75)]
- 5-stage 다중 에이전트(planner/researcher/reflector/writer/synthesizer)
  파이프라인 제거 → 단일 ChunkedWriter 의 outline → section[N] → polish
  3-step 으로 교체. 본문 분석에서 추상화 손실 / 토큰 폭증 문제 해소
- 답변 길이 자동 분기: 짧은 prompt 는 fast-path direct 1회 호출,
  본문 분석은 chunked. outline 빈 배열도 direct 폴백

[코드 리뷰 9개 항목 일괄 패치 (v2.2.76)]
- /research polling hang 방어 (heartbeat + status 정규화 + 연속 실패 abort)
- 회사 모드 dispatcher abort 신호를 AIService.chat 까지 전달
- bridgeFetch 에 onHeartbeat 콜백 도입 (slow endpoint 사용자 친화적)
- dead code 정리: reflectionPersister.ts 제거 + enableReflection 등 좀비 config 키
- parseOutline 의 empty vs fallback reason 명시적 분리
- chatHandlers 의 회사 모드 케이스 ~325줄을 src/sidebar/companyHandlers.ts 로 분리
- Intent Alignment 라운드 한도 도달 시 smart 모드 자동 진행
- LM Studio doSwitch unload 실패 시 currentModel 정리 + load 강행
- retrieval informationDensity → queryCoverage 정합화

[/youtube 채널 지원 (v2.2.77~v2.2.82)]
- 채널/플레이리스트 URL 자동 감지 + n:N 으로 영상 개수 지정 (최대 50)
- 채널 루트 URL 에 /videos 탭 자동 append (yt-dlp enumeration 정상화)
- 영상별 순차 처리 (queue 패턴) + i/N 진행 표시 + 마지막 통계 요약
- mode:info / mode:benchmark / mode:both 분석 모드 분기
  - info: 영상 내용을 지식 카드로 추출 (튜토리얼·강의·뉴스용)
  - benchmark: 4-렌즈 대본 역기획서 (콘텐츠 제작 벤치마크용)
  - both: 둘 다 (기본)
  - bare keyword 도 허용: /youtube <url> n:1 info
- bridge 에러 메시지 [object Object] 깨짐 수정 (구조화 에러 추출)
- "패키지 없음" 등 환경 의존성 에러에 자동 가이드 첨부

[Astra: Setup Datacollect Dependencies 명령 추가 (v2.2.80)]
- Python 자동 감지 + yt-dlp / youtube-transcript-api 자동 설치
- macOS PEP 668 환경 자동 폴백 (--user --break-system-packages)
- /youtube 등에서 패키지 미설치 감지 시 "Install Now" 버튼 notification

[테스트]
- tests/agentEngine.test.ts 를 chunked flow 에 맞춰 전체 재작성
- tests/resilience_stress.test.ts Scenario B/D 를 role-aware mock 으로 갱신
- 399/399 통과

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 23:13:21 +09:00
g1nation 0712014fcb chore: v2.2.73 — ASTRA-DEBUG 로그 레벨 + webview CSP font-src 보강
- ASTRA-DEBUG 정상 흐름 로그를 console.error → logInfo/console.log 로 강등
  (chatHandlers, extension, slashRouter): DevTools에 ERR로 찍히던 오탐 제거
- sidebar webview에 명시적 CSP meta 추가 + font-src에 data: 허용
  (sidebar.html, sidebarProvider._getHtml): VS Code outer iframe이 codicon.ttf를
  data:font/ttf 로 inject하면서 기본 CSP에 막혀 매 prompt 마다 violation
  경고가 찍히던 문제 해소
- 누적된 LM Studio / agent / 컨텍스트 매니저 / 테스트 갱신 동반

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 15:52:19 +09:00
g1nation 36db170844 feat: v2.2.64 — LM Studio 모델 발견/에러 표시 + macOS 셸 호환성
- LM Studio 모델 dropdown을 SDK system.listDownloadedModels('llm') 으로
  조회하도록 변경. REST /v1/models 는 JIT 옵션이 꺼져 있으면 로드된 모델만
  반환하여 macOS 환경에서 dropdown 이 비거나 fallback 한 줄만 남던 문제 해결.
  SDK 실패 시 REST 로 자동 fallback.
- LM Studio 로드/언로드 실패를 readyBar 의 영속 segment 로 표시. 모델을
  다시 선택하면 clearLmStudioError() 로 해제.
- src/security.ts: PowerShell '&&' rewrite 를 win32 에서만 수행. macOS/Linux
  에서는 'if (\$?) { ... }' 가 zsh/bash 문법 오류라 명령 자체가 깨졌음.
- src/utils.ts: system prompt 에 OS 별 [ENVIRONMENT] 블록 동적 주입
  (셸/경로 스타일/체이닝 연산자). 'cd E:\\... ; ...' 같은 Windows 전용
  예시를 macOS 에서 그대로 따라하던 회귀 차단.
- 테스트 mock 에 listDownloaded() 추가.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 09:37:29 +09:00
g1nation 86cacaeb03 Update ConnectAI codebase 2026-05-18 08:15:01 +09:00
g1nation 9ca95ab997 v2.2.15: Astra Office Refactor & Multi-Service Integration 2026-05-16 22:07:06 +09:00
g1nation 8da9532ca1 feat(engine): implement self-reflection (reflector) stage in multi-agent pipeline
- Added ReflectorAgent for meta-cognition and critical review between Research and Writing
- Updated WriterAgent to explicitly address reflection critiques
- Introduced 'g1nation.enableReflection' configuration setting
- Added comprehensive integration tests for the self-reflection stage
- Documented design decisions in ADR-0010 and related discussion records
2026-05-14 01:47:28 +09:00
g1nation eb36cec050 chore: version up to 2.80.38 and package with refined recovery 2026-05-13 00:15:45 +09:00
g1nation 6c4bc3494f chore: version up to 2.80.37 and package with response recovery 2026-05-12 23:55:00 +09:00
g1nation e0af15767a chore: version up to 2.80.36 and package with UI/UX refinement 2026-05-12 23:41:18 +09:00
g1nation f6b27a125b chore: version up to 2.80.35 and package with experience memory 2026-05-12 23:23:23 +09:00
g1nation 065e598cca chore: version up to 2.80.34 and package 2026-05-12 22:54:21 +09:00
g1nation 5d3df0816f chore: version up to v2.80.31, clean up agent logic, and fix tests 2026-05-11 13:02:06 +09:00
g1nation 3220a126fd chore: bump version to 2.80.27 and update core features 2026-05-09 01:16:12 +09:00
g1nation 5ffb472d22 Update Astra: v2.80.19 - Refactoring Sidebar, LM Studio integration, and new tests 2026-05-08 23:14:47 +09:00
koriweb 4b649194aa fix(agent): strip Astra formatting when custom agent selected v2.80.4 2026-05-06 13:59:14 +09:00
koriweb 0c9def0241 test: update local path preflight expectations for new enforcement string 2026-05-06 12:20:23 +09:00
koriweb 00f62bdc34 Updates 2026-05-06 11:46:38 +09:00
g1nation 466e9e4d5f feat: ConnectAI structural hardening and retrieval precision improvements 2026-05-05 21:37:45 +09:00
g1nation c2f17cfb03 feat: Resilience Hardening & Boundary Stress Validation (v2.77.3) 2026-05-05 17:17:00 +09:00
g1nation cf10d14148 feat: Intelligent Resilience & Trust Reporting (v2.77.2) 2026-05-05 17:04:27 +09:00
g1nation 037eafa02b [Core] Final user-optimized system prompt (v2.76.9) and test alignment 2026-05-05 16:35:33 +09:00
g1nation 154ae7dedc [Core] Consolidate system prompt rules and update tests 2026-05-05 16:32:15 +09:00
g1nation d333042e7c [RAG] Implement visual conflict and density metadata tags for enhanced context intelligence 2026-05-05 15:29:16 +09:00
g1nation 18021bd19d feat(scoring): implemented semantic context padding and optimized excerpting v2.76.0 2026-05-05 11:30:29 +09:00
g1nation 518a5ed317 feat(scoring): completed roadmap Phase 1 & 2 with edge case stability v2.74.0 2026-05-05 11:20:44 +09:00
g1nation e6bc263872 feat(scoring): implemented tiered conflict severity system v2.73.0 2026-05-05 11:15:03 +09:00
g1nation 563e499324 feat(scoring): added comprehensive unit tests and refined bilingual tokenization v2.72.0 2026-05-05 11:10:31 +09:00
g1nation 71e39ad78e feat(core): upgrade to v2.65.0 with Cognition Layer & Proactive Advisor
- Integrated v4.0 Operational Policy into AgentEngine and AgentExecutor.
- Added Context Amplification for policy-driven reasoning.
- Implemented Proactive Advisor for next-action decision forks.
- Added CognitionAudit diagnostics for real-time policy monitoring.
- Updated test suites to support dual-execution cognition patterns.
2026-05-04 22:42:08 +09:00
g1nation a74c881375 test: clear cache before tests to ensure accurate benchmarks 2026-05-04 15:51:24 +09:00
g1nation 215c5f9457 feat: v2.62.0 - Astra Autonomous Loop (AAL) foundation & enhanced file analysis 2026-05-04 12:58:43 +09:00
g1nation e9e1832db7 release: v2.58.0 2026-05-03 21:07:37 +09:00
g1nation 68f2e02340 release: v2.37.0 2026-05-03 20:50:09 +09:00
g1nation a5f3e383d4 Version 2.55.0 Release: Rebranding to Astra 2026-05-03 20:40:40 +09:00
g1nation d8ae0b5964 Version 2.54.0 Release: Jarvis Project Brief and Thinking Partner Response Contract 2026-05-03 20:33:44 +09:00
g1nation f230eb4663 Version 2.52.0 Release: Index Routing and Query De-noising 2026-05-03 20:09:39 +09:00
g1nation 53edc33c3e Version 2.51.0 Release: Structured Knowledge Slot Planning and Material Engine 2026-05-03 10:32:58 +09:00
g1nation 5e3750a93e Version 2.50.0 Release: Autonomous Turn-Based Recording and UI Streamlining 2026-05-03 10:07:34 +09:00
g1nation 70e46ab279 Version 2.48.0 Release: Smart History Sanitization for Context Optimization 2026-05-03 01:28:32 +09:00
g1nation ecec7556da Version 2.47.0 Release: Recursive Project Knowledge Flow and Follow-up Context Injection 2026-05-03 01:22:15 +09:00
g1nation fadf867978 Version 2.46.0 Release: Autonomous Anti-Blocking Generation and Trace Relevance Refinement 2026-05-03 01:13:33 +09:00
g1nation d2c9f624b8 Version 2.43.0 Release: Contextual Project Trace & Overrides 2026-05-03 00:59:38 +09:00
g1nation 1d9c7f203f Version 2.42.0 Release: Autonomous Anti-Blocking Generation for Project Knowledge 2026-05-03 00:54:05 +09:00
g1nation 9403662ba3 Version 2.41.0 Release: Local Path Preflight expansion for knowledge creation 2026-05-03 00:49:08 +09:00
g1nation d5aad75a10 Release: v2.36.9 - Integrate Blog Production Manual & Writing Patterns 2026-05-02 21:12:46 +09:00
g1nation 7643362080 Feat: Implement local path code review preflight and add system prompt tests 2026-05-02 18:37:39 +09:00
g1nation da4ebe3942 Feat: Enhance query intent search and answer format readability 2026-05-02 18:20:22 +09:00