Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,9 @@ DART, KRX, 네이버 뉴스 → normalized_data_bundle → analysis_result
- 사용자에게 보이는 agent 답변/오류 문구는 1인칭 `공시리` 톤을 유지한다.

```bash
# agent pane A: build watch (repo root에서 .env 로드 후 실행)
# agent: 1-pane dev (tsc watch + node --watch, src 변경 시 자동 재기동)
set -a; source .env; set +a
cd agent && npm run build -- --watch --preserveWatchOutput

# agent pane B: server watch
set -a; source .env; set +a
cd agent && node --watch dist/server.js
cd agent && npm run dev
# health: curl http://127.0.0.1:8787/health

# backend: 반드시 repo root에서 실행 (backend.main import 경로 유지)
Expand Down Expand Up @@ -139,9 +135,9 @@ make status # health 체크
# Pi runtime typecheck
cd agent && npm run typecheck

# Agent server (after `npm run build -- --watch` in another pane)
# Agent dev (1-pane: tsc watch + node --watch 자동 재기동)
# (pnpm-workspace.yaml의 onlyBuiltDependencies 확정 이후 `pnpm approve-builds` 불필요)
cd agent && node --watch dist/server.js
cd agent && npm run dev

# Backend dev (repo root)
uv run --project backend uvicorn backend.main:app --reload --host 127.0.0.1 --port 8000
Expand Down
3 changes: 2 additions & 1 deletion agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"start": "node dist/server.js",
"trigger": "npm run build && node dist/cli/runDisclosureTrigger.js",
"serve": "npm run build && node dist/server.js",
"dev:serve": "npm run build && node dist/server.js"
"dev:serve": "npm run build && node dist/server.js",
"dev": "tsc -p tsconfig.json && (tsc -p tsconfig.json --watch --preserveWatchOutput & node --watch dist/server.js)"
},
"devDependencies": {
"typescript": "^5.9.3"
Expand Down
Loading