Commit Graph

8 Commits

Author SHA1 Message Date
whdwo798 7bcb570497 스케줄러 배터리 제한 해제 — DisallowStartIfOnBatteries=false
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 18:20:43 +09:00
whdwo798 1690f4e248 버그 수정 — 스케줄러 한글 경로 깨짐 + Python 로그 UTF-8 강제
- setup_scheduler.ps1: chcp 65001, StockBot_Bot 제거, XML 경로 자동 교정
- run_morning/midday/evening.ps1: chcp 65001 + PYTHONUTF8=1 추가
- app/main.py: sys.stdout.reconfigure(encoding=utf-8) 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 13:54:15 +09:00
whdwo798 edafeb7c79 [2026-05-19] 세션 분리 + L3→B안 전환 + /midday 장중 분석 추가
- L3 하드 중단 제거 → B안(연속 손절별 포지션 축소) 적용
  0회×1.0 / 1회×0.7 / 2회×0.5 / 3+회×0.3, 익절 시 한 단계 회복
- 아침·점심 세션 분리: 11:00 이후 midday_context.json 감지 시 점심 세션 자동 시작
  (12:00 고정 시작 제거 → 이벤트 기반)
- app/ai/midday.py: 장중 데이터 수집 스크립트 신규 작성
- .claude/commands/midday.md: /midday 슬래시 커맨드 신규 작성
- scripts/run_midday.ps1: 11:20 스케줄러 스크립트 신규 작성
- setup_scheduler.ps1: StockBot_Midday 태스크 추가
- CLAUDE.md: 전체 문서 업데이트

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 14:07:27 +09:00
whdwo798 b54d61531f [2026-05-19] 봇 시작 순서 변경 — 모닝 완료 후 /start-bot 호출
StockBot_Bot 스케줄러(07:55) 비활성화.
run_morning.ps1이 /morning 완료 후 /start-bot 실행.
daily_context.json 생성 보장 후 봇 시작으로 컨텍스트 적용 확인 가능.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 08:21:15 +09:00
whdwo798 7c9f73f63d [2026-05-15] 스케줄러 인코딩·권한·Discord 알림 수정
- run_*.ps1: PSScriptRoot 경로, claude.cmd 전체경로, UTF-8 BOM 저장으로 한글 깨짐 해결
- settings.json: PYTHONUTF8=1 환경변수, 글로벌 bypassPermissions 추가
- discord_notify.py: 커밋 메시지 불릿 + 커밋 완료 여부만 전송하도록 간소화

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 15:00:10 +09:00
whdwo798 c4ac27b5ac [2026-05-15] 완전 자동화 - 봇 시작도 Claude Code 경유
- ~/.claude/commands/start-bot.md: /start-bot 슬래시 커맨드 추가
  (DETACHED_PROCESS로 Python 봇 백그라운드 실행 + Discord 알림)
- scripts/run_bot.ps1: python 직접 실행 → claude -p "/start-bot" 로 변경
- scripts/setup_scheduler.ps1: 3개 태스크 통합 재등록 스크립트 업데이트
- StockBot_Bot 태스크 업데이트 완료

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 14:10:51 +09:00
whdwo798 a65d7c297b [2026-05-15] claude_evening 구현 + 권한 영구 적용
- app/ai/evening.py: 장후 데이터 수집 (매매내역/30일통계/실전전환조건)
- ~/.claude/commands/evening.md: /evening 슬래시 커맨드
- scripts/run_evening.ps1: claude_evening 실행 스크립트
- 작업 스케줄러 StockBot_Evening 등록 (평일 15:30)
- .claude/settings.json: bypassPermissions 추가 (권한 영구 승인)
- CLAUDE.md: 권한 섹션 추가, 할 일 목록 업데이트

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 14:07:15 +09:00
whdwo798 e60b59a644 [2026-05-15] 작업 스케줄러 자동화 + main.py 타이밍 수정
- scripts/run_morning.ps1: claude_morning 실행 스크립트
- scripts/run_bot.bat: 매매봇 실행 스크립트
- scripts/setup_scheduler.ps1: 작업 스케줄러 등록 스크립트
- app/main.py: AI 컨텍스트 로드 타이밍 08:05→08:30으로 수정
  (claude_morning이 08:15 시작해 08:30 전에 완료되므로)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 14:02:53 +09:00