Commit Graph
48 Commits
Author SHA1 Message Date
lee-hyeon-cheolandClaude Fable 5.1 4ccabfebb1 chore(backend): 기본 모델 581 GaussO Think — 목록 첫 항목이 OpenCode 기본이라 순서도 바꿈
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 19:54:22 +09:00
lee-hyeon-cheolandClaude Fable 5.1 b08afa389a fix(gateway): FabriX 가 맞는 인증 조합에도 간헐 401 — 4개 조합 뒤 유력 조합 1초 쉬고 한 번 더
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 19:41:41 +09:00
lee-hyeon-cheolandClaude Fable 5.1 9bd0849f27 chore(gateway): 인증 조합별 상류 상태코드 로그 + deploy.sh 가 TOKEN_PREFIX=bearer 채움
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 18:39:28 +09:00
lee-hyeon-cheolandClaude Fable 5.1 7397061665 fix(opencode): 이미지가 게이트웨이까지 안 오던 것 — vision 모델에 modalities.image 표시 + 이미지 턴은 OpenCode 에 gateway/605 지정
고객사 실측: 게이트웨이 로그 parts=['text']. OpenCode 는 모델 설정에 이미지 입력 표시가 없으면
파트를 떨구고 텍스트만 보냄. render_opencode 가 AAF_FABRIX_VISION_MODEL_ID 모델에 attachment/modalities 를
붙이고, deploy.sh 가 OPENCODE_VISION_MODEL=gateway/605 를 채워 백엔드가 이미지 턴에 그 모델을 지정.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 18:33:40 +09:00
lee-hyeon-cheolandClaude Fable 5.1 377a36a313 chore(gateway): 요청 파트 종류·선택 모델 한 줄 로그 — 이미지 분기 확인용
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 18:23:35 +09:00
lee-hyeon-cheolandClaude Fable 5.1 c77fc8a737 chore(tauri): 0.1.1 — 같은 버전 msi 는 Windows 가 설치를 건너뛰어 재배포마다 올림
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 17:45:50 +09:00
lee-hyeon-cheolandClaude Fable 5.1 cce6531628 chore(backend): deploy.sh 가 BACKEND_PORT=8080 도 채움 — 빠지면 OpenCode 가 8001 로 렌더돼 연결 실패
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 17:37:15 +09:00
lee-hyeon-cheolandClaude Fable 5.1 4078d0ccc7 chore(backend): deploy.sh 필수 env 4개 검사 — 빈 채로 띄우지 않음
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 17:25:50 +09:00
lee-hyeon-cheolandClaude Fable 5.1 cdc02a65c0 fix(opencode): .opencode/package.json 을 git 에 — 없으면 OpenCode 가 커스텀 툴을 조용히 스킵(고객사 실측)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 16:57:51 +09:00
lee-hyeon-cheolandClaude Fable 5.1 5c78edcaa5 chore(backend): deploy.sh — 고객사 -12 배포 한 방(env 보강·migrate·시드 import·렌더·재시작·확인)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 16:13:48 +09:00
lee-hyeon-cheolandClaude Fable 5.1 2e7bae4c06 feat: 스니펫 공용화 — 서버 PostgreSQL 테이블 + API, 프론트는 브릿지 대신 HTTP
결정(9/21): 공용 하나, 개인 로컬 없음.
- backend apps/snippets: Snippet(name PK·desc·body·category) + SnippetUsage(사람별 count/last_used).
  GET/POST /api/v1/snippets, PUT/DELETE /snippets/{name}, POST /snippets/{name}/use — 옛 브릿지 5개와 1:1,
  이름 정규화·중복 409·빈 내용 400 규칙 동일. import_snippets 커맨드로 옛 snippets.db 적재. 테스트 3개
- frontend snippets.api.ts 만 HTTP 로 교체(훅·페이지·타입 무변경). 테스트 axios-mock-adapter 로
- ponytail: Tauri 로컬 SQLite 커맨드는 미사용 상태로 남김. 지울 때 Rust+브릿지 테스트 함께

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 16:06:14 +09:00
lee-hyeon-cheolandClaude Fable 5.1 df5feaad3a docs: 스니펫 공용 PostgreSQL 결정 기록
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 15:59:38 +09:00
lee-hyeon-cheolandClaude Fable 5.1 833b834859 style(frontend): '생각하는 중' 자리를 답변 말풍선과 같은 모양으로 — ThinkingBubble
세 군데(새 대화 세션 생성 중 / 스트리밍 첫 토큰 전 / 재진입 대기)가 각자 손으로 그린 테두리 카드라
실제 답변(Message: AI 배지 + CODEASSIST + 상자 없는 본문)과 달랐음. 컴포넌트 하나로 통일.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 15:34:07 +09:00
lee-hyeon-cheolandClaude Fable 5.1 5998944f09 fix(frontend): 새 대화 전송 즉시 말풍선+'생각하는 중' 표시, 세션 생성 실패 시 헤로 복귀
세션 생성(OpenCode 왕복)이 느리면 헤로 화면에 '응답 중' 만 떠서 안 넘어간 것처럼 보였고,
실패하면 pending 이 안 풀려 영원히 갇혔음.
- 전송 순간 헤로 → 내 말풍선 + 시머(SessionChatPage 첫 화면과 같은 모양)
- mutate 콜백 패턴(SnapUserControls 와 동일): onSuccess 이동, onError 헤로 복귀 + 토스트
- 테스트 3개(훅 mock, SnippetPalettePage.test 패턴)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 15:30:55 +09:00
lee-hyeon-cheolandClaude Fable 5.1 458a828409 style(frontend): taste-skill 반영 — 오프블랙 글씨, 버튼 알약/카드 10px 분리, 눌림 피드백
- .agents/skills: Leonxlnx/taste-skill 3개 설치(랜딩용이라 채팅 앱엔 일부만 적용)
- samsung 팔레트: foreground #000→#111. 전역 --radius 20 을 10 으로 내리고 --radius-pill 로 버튼만 알약
- Button: rounded-[var(--radius-pill,var(--radius-md))], active:scale-[0.98]

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 15:21:32 +09:00
lee-hyeon-cheolandClaude Fable 5.1 55e3163695 docs: 인덱싱 가이드 — FabriX 직결(llm_client 헤더 패치)을 기본으로, -12 게이트웨이는 대안
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 15:01:44 +09:00
lee-hyeon-cheolandClaude Fable 5.1 e7158808a1 docs: 인덱싱 가이드 — 고객사 PC 에서 -12 게이트웨이(8914) 경유로, FabriX 직결 패치 예시
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 15:00:38 +09:00
lee-hyeon-cheolandClaude Fable 5.1 c31cc50b06 docs: 인덱싱 가이드에 로컬(OpenRouter 직결) 절 추가
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:59:23 +09:00
lee-hyeon-cheolandClaude Fable 5.1 256c40e038 docs: ABAP_INDEXING 을 고객사 FabriX 로 돌리는 팀원 가이드
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:58:26 +09:00
lee-hyeon-cheolandClaude Fable 5.1 113d97c77c feat(backend): 이미지 요청만 vision 모델로 — OPENCODE_VISION_MODEL
로컬(OpenRouter)은 게이트웨이를 안 거쳐서 백엔드가 OpenCode prompt 에 model{providerID,modelID} 를 실어 분기.
기본 openrouter/google/gemma-4-31b-it(고객사 605 와 같은 모델). 텍스트는 기본 GLM 5.2.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:54:04 +09:00
lee-hyeon-cheolandClaude Fable 5.1 6d7723a533 chore(frontend): 예시 질문에서 ALV 리포트 뼈대(CL_SALV_TABLE) 제거
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:49:28 +09:00
lee-hyeon-cheolandClaude Fable 5.1 fa172d1413 feat(opencode): ABAP 소스 인덱스 툴 + 답변 출처 표기 규칙
- .opencode/tools/abap_index.ts: ABAP_INDEXING 질의 서버(:8100) 를 툴 3개로 —
  abap_index_search(로직 조각 검색) / abap_index_chunk(원문+정의부) / abap_index_source(전체 소스·요약)
- AGENTS.md: 코드 질문은 인덱스 먼저, 코드블럭 위에 [출처: 프로그램/unit L줄] · [출처: SAP 조회] · [출처: 없음 — 생성 코드]
- 서버 없으면 툴이 실패 문자열을 주고 에이전트는 생성 코드로. 실측: 인덱스 미연결 상태에서 '[출처: 없음 — 생성 코드]' 표기 확인
- .env ABAP_INDEX_URL, README 절차. .opencode/package.json 은 gitignore 라 고객사엔 폴더째 옮겨야 함

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:37:26 +09:00
lee-hyeon-cheolandClaude Fable 5.1 89fc8fab45 feat(app): 답변 완료 알림 — 창 안 보고 있으면 토스트 + 트레이 점
- 프론트: 스트림 onDone 에서 chat.done(title) 한 번. 브라우저에선 no-op
- Rust shell/notify: 창 보이고 포커스면 아무것도 안 함. 아니면 Windows 토스트(tauri-plugin-notification)
  + 트레이 아이콘을 점 찍힌 tray-alert.png 로. 창 Focused(true) 에서 원복
- 토스트는 설치본(msi)에서만 알림센터에 등록돼 보임. dev 에선 트레이 점으로 확인

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:13:40 +09:00
lee-hyeon-cheolandClaude Fable 5.1 eb74de2634 docs: stage-2 — -12 SAP MCP·PostgreSQL 전환 기록, 남은 것 갱신
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:04:47 +09:00
lee-hyeon-cheolandClaude Fable 5.1 fa738a7a2c fix(backend): PostgreSQL sslmode 를 env 로(기본 prefer) — 고객사 내부 PG 가 SSL 미지원
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 14:01:29 +09:00
lee-hyeon-cheolandClaude Fable 5.1 9fc93ffbce style(admin): 비용 표시 제거 — 사내 LLM 은 단가 없어 항상 0. 토큰·응답시간만
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 13:49:39 +09:00
lee-hyeon-cheolandClaude Fable 5.1 d4a5f20787 feat: 관리자 대시보드 — 토큰·비용·응답시간 집계 API + 앱 /admin 페이지
- backend apps/stats: GET /api/v1/admin/stats?from&to → totals / byUser / byDay. ChatMessage(assistant) 집계만, is_superuser 아니면 403. 테스트 3개
- frontend features/admin: 요약 카드 4개(요청·토큰·비용·평균 응답), 일별 토큰 막대(div), 사용자별 표, 기간 프리셋(오늘/7/30/90일). 헤더에 ADMIN 만 아이콘. 테스트 2개

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 13:39:06 +09:00
lee-hyeon-cheolandClaude Fable 5.1 aa37cef13d feat(backend): 스트림 타임아웃 env 화 — 첫 이벤트 300s, FabriX 조각 간 300s 기본
Gemma4 가 큐 밀리면 '안녕'에도 200초라 첫 이벤트 60s 로는 no-events 로 잘림.
STREAM_FIRST_EVENT_TIMEOUT_S / STREAM_TURN_TIMEOUT_S / AAF_FABRIX_READ_TIMEOUT_S / AAF_FABRIX_TOTAL_TIMEOUT_S 를 .env 로.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 13:31:00 +09:00
lee-hyeon-cheolandClaude Fable 5.1 e9e644b15b feat(frontend): Esc 로 답변 생성 중단 — 생성 중 아니면 기존대로 목록 이동
중단 버튼·백엔드 cancel·OpenCode abort 체인은 이미 있었고 Esc 배선만 없었음.
서버만 생성 중(재진입, generatingRemotely)일 때도 Esc 가 cancel 을 보냄.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 13:24:55 +09:00
lee-hyeon-cheolandClaude Fable 5.1 8571db5bee feat(backend): SAP MCP 를 env 로 켜고 끄게 — 고객사 -12 에 별도 기동 절차
opencode.fabrix.json.tmpl 의 sap-icf 를 MCP_PORT/MCP_API_KEY 로 렌더, 키 없으면 enabled:false.
.env.example 에 SAP_*·MCP_* 블록. README 에 -13 번들 재활용 절차(컨테이너 간 통신 금지라 -12 에 따로).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 10:43:49 +09:00
lee-hyeon-cheolandClaude Fable 5.1 72a06d6c07 style(frontend): PwC 로고 제거, 기본 라이트 모드, 삼성 팔레트 포인트 Samsung Blue
- LogoMark 는 null 렌더(호출부 6곳 그대로), logo.png·logo-dark.png 삭제, 파비콘 투명
- themeStore·index.html 기본 light. 예전 dark 저장값은 첫 실행 때 한 번만 초기화
- samsung 팔레트 primary/ring/link = #1428A0(브랜드 파랑). 바탕·글씨·면은 실측값 유지
- Message 테스트: 기본 라이트 기준으로 코드블럭 흰 배경 기대

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 10:40:32 +09:00
lee-hyeon-cheolandClaude Fable 5.1 efb9fb46de style(frontend): 삼성향 라이트 팔레트(samsung) 추가하고 기본으로
삼성닷컴(sec) 공개 웹 실측값 — 검정 주색/CTA, 흰 canvas, #f7f7f7 surface, #707070 muted,
#dddddd border, 링크 #007aff, 그림자 없음, 버튼·카드 radius 20px(알약).
One UI 파랑은 폰 앱용이라 안 씀. 폰트는 재배포 근거 없어 안 넣음. 다크 모드는 기존 그대로.
기존 사용자 저장값 clean-blue 는 한 번만 samsung 으로 교체(index.html 부트스트랩).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 10:26:52 +09:00
lee-hyeon-cheolandClaude Fable 5.1 e351560377 docs: stage-2 남은 것에 이미지 미저장 이슈 추가
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 09:12:19 +09:00
lee-hyeon-cheol c0a4a79272 Merge branch 'master' of https://git.sqnotes.com/20260807_OPENCODE_TEMP/CODE_ASSISTANT 2026-09-21 09:05:39 +09:00
leehc991028andClaude Fable 5.1 0bba4a031f docs: Raycast·Tinycast 벤치마크 — CodeAssist 가 건질 기능 5개와 차별점
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-20 15:40:02 +09:00
lee-hyeon-cheolandClaude Fable 5.1 3a602e2890 docs: FabriX 멀티모달 여부·agent-chat API 확인 결과
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 13:32:56 +09:00
lee-hyeon-cheolandClaude Fable 5.1 055f0ef473 docs: FabriX 6개 모델 3차 실측 추가
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 11:30:47 +09:00
lee-hyeon-cheolandClaude Fable 5.1 7ad48732ae feat(gateway): 이미지 붙은 요청만 vision 모델(Gemma4)로 — 텍스트는 기본 339
Gemma4 가 '안녕' 한 단어에 94s(580 은 188s) 라 텍스트 기본으로는 못 씀.
AAF_FABRIX_VISION_MODEL_ID 가 있으면 messages 에 image_url 파트가 있을 때만 그 모델로 x-llm-model-id 를 바꿈.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 10:34:55 +09:00
lee-hyeon-cheolandClaude Fable 5.1 2b8c2d7742 docs: 고객사 첫 배포 기록 — stage-2, 배포 트러블슈팅, FabriX 모델 속도 실측, 오늘 order
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 16:34:59 +09:00
lee-hyeon-cheolandClaude Fable 5.1 435952f25c feat(backend): 사내 LLM(FabriX) 게이트웨이 /api/ito + OpenCode FabriX 설정 렌더
- apps/gateway: OpenCode→FabriX 통과 중계. 헤더 3종 인증, x-llm-model-id 로 모델 선택, 401 시 Bearer/날것×클라이언트 헤더 재시도, 모델 허용 목록. ABAP_OPENCODE apps_ito 통째 복사 대신 200줄로
- opencode/opencode.fabrix.json.tmpl + render_opencode.py — .env AAF_* 로 렌더
- .env.example AAF 블록(기본 605 Gemma4, TOKEN_PREFIX=bearer). 파서가 줄 끝 # 주석을 값으로 읽던 것 수정
- tests/test_gateway.py 9개(MockTransport)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 16:34:53 +09:00
lee-hyeon-cheolandClaude Fable 5.1 47d31dbe06 feat(app): 활성 창 캡쳐·캡쳐 목적지 선택·단축키 Ctrl+Alt 재배치 + UX 손질
- Ctrl+Alt+A/Z 맨 앞 창 통째 캡쳐(DWM 확장 프레임 경계), S/X 드래그 캡쳐. A/S 새 대화, Z/X 마지막 대화
- 캡쳐 후 창을 확실히 앞으로(AttachThreadInput), capture.image 에 목적지 path 실어 그 Composer 만 소비
- 드래그 선택영역 원본 밝기·더블버퍼(번쩍임) — code-assistant-v2 복사본에서 이식
- 단축키 Ctrl+Alt+Q/W: Eclipse·ADT·SAP GUI 바인딩 목록 대조해 비어 있는 조합으로
- 버튼 cursor:pointer(Tailwind v4), 가운데 스피너, 스니펫→챗 버튼, 스니펫 검색창 높이 84→88

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 16:34:48 +09:00
leehc991028andClaude Fable 5.1 2869985139 feat(backend): Django + OpenCode 백엔드 추가 — 5_django_backend/
앱이 기대하는 base-backend 계약(envelope·JWT·/chat/stream SSE)을 그대로 구현.
Django 는 로그인·세션 미러(SQLite/PG)·OpenCode 이벤트 번역만 맡고, 답변은 전용
OpenCode 인스턴스(opencode/ workspace, codeassist 에이전트)가 만듦.
- accounts: 이메일 로그인, access 60분 / refresh 14일, entra/config 는 501
- chat: 세션 목록·검색·메시지·취소 + POST /chat/stream 어댑터(part.delta→token,
  idle→usage/done, 클라 끊겨도 턴 감시 태스크가 DB 마무리, 첫 이벤트 60초 타임아웃)
- OpenCode 1.18 멀티 프로젝트라 모든 요청에 ?directory= 부착
- docs-lib 에 OpenCode SDK 1.18.6 타입 원본, pytest 32

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 21:28:31 +09:00
leehc991028andClaude Fable 5.1 08fdc1a258 docs: OpenCode+Django 백엔드 전환 분석·결정·stage-1 기록
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 21:24:17 +09:00
leehc991028andClaude Fable 5.1 2dbd44a621 chore(frontend): 개발 서버에서 로그인 폼 기본 계정 채움
.env.development 의 VITE_DEFAULT_LOGIN_* 로만 채워지고 빌드·테스트엔 안 들어감.
라벨 '비번' → '비밀번호'.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 21:24:17 +09:00
leehc991028andClaude Fable 5.1 9c6b28782d style(frontend): ABAP_OPENCODE 디자인 시스템으로 맞춤 + 화면 재구성
DESIGN_SYSTEM.md 의 Dark Workspace 토큰을 shadcn 토큰으로 이식(다크 기본, radius 8px,
success/warning/shadow-float), 시스템 산세리프, PwC 로고(LogoMark). 목록·새 대화·대화·
로그인 화면을 가운데 760px 열로 통일하고, 떠 있던 테마·로그아웃 상자는 상단 바로,
말풍선은 다크 토큰(AI 답변은 상자 없이), ABAP 흰 에디터 룩은 라이트 모드에서만.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 21:24:17 +09:00
leehc991028andClaude Fable 5.1 506fbf601d feat(tauri): 맥에서도 빌드되게 Win32 모듈을 cfg(windows) 로 분리
windows crate 를 Windows 타깃 전용 의존성으로 옮기고, paste/capture 는 다른 OS 에서
같은 API 의 껍데기(_stub)로 컴파일. hwnd 접근은 window::native_handle 하나로.
Windows 동작은 그대로. 맥에선 붙여넣기·영역 캡처가 'Windows 에서만 됨'으로 응답.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 21:24:17 +09:00
leehc991028andClaude Fable 5.1 54f75aa089 feat(frontend): 로그인 토큰을 Bearer 로 들고 다니게 — Django 백엔드 연결
Django(OpenCode 중계) 백엔드는 토큰을 쿠키가 아니라 응답 body 로 주고, Tauri 앱은
서버와 origin 이 달라 쿠키가 안 붙는다. 기존 tokenProvider seam 에 refresh 토큰과
localStorage 영속을 얹고, client/sse 의 refresh 를 body {refreshToken} 방식으로 바꿈.
로그인 때 저장하고 로그아웃 때 비움. 토큰 없으면 예전 쿠키 모드 그대로.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 21:24:16 +09:00
leehc991028 858ee9e9da Initial Commit 2026-09-16 17:22:14 +09:00