Skip to content

frontend: API 엔드포인트 및 폴링 설정 업데이트#1

Open
anggla01301 wants to merge 9 commits into
mainfrom
elizaos-challenge
Open

frontend: API 엔드포인트 및 폴링 설정 업데이트#1
anggla01301 wants to merge 9 commits into
mainfrom
elizaos-challenge

Conversation

@anggla01301

Copy link
Copy Markdown
Owner

frontend: API 엔드포인트 및 폴링 설정 업데이트

anggla01301 and others added 9 commits April 6, 2026 11:13
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- .dockerignore에 .env 추가 (보안)
- .env.example 환경변수명 통일 및 누락 변수 추가
- Dockerfile에 TypeScript 빌드 단계 추가
- package.json main 필드 추가 및 ESM 호환 스크립트 수정
- nos_job_def 이미지명 및 환경변수 수정
- frontend: API 엔드포인트 주석 통일, 응답 파싱 정규식 버그 수정
- frontend/server.js CORS 헤더 추가
- src/index.ts 모델 기본값 및 에러 메시지 개선

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 프롬프트 다양화: 토큰 목록 포함, 랜덤 오프닝 스타일, 상투어 금지
- max_tokens 200 → 350으로 증가
- 캐릭터 시스템 프롬프트에 ROAST_WALLET 액션 강제 지시 추가
- 프론트엔드 재시도 시 새 세션 생성으로 변경

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- src/index.ts를 프로젝트 엔트리포인트로 변경해 ROAST_WALLET 액션 등록
- package.json start 스크립트에서 --character 플래그 제거
- frontend/app.js: REST 폴링 → POST 응답에서 roast 직접 추출
- frontend/index.html: socket.io 클라이언트 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- frontend/server.js: /api, /socket.io 요청을 ElizaOS(3000)로 프록시
- frontend/app.js: localhost:3000 하드코딩 → 상대경로로 변경
- Dockerfile: bun 설치 추가, 프론트엔드 서버 실행 추가
- nosana_job.json: expose 8080으로 변경

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant