본문으로 건너뛰기

coreyhaines31/treg

OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

https://skillcdn.ai/gh/coreyhaines31/treg

내 AI에 이 주소를 연결하면 이 스킬을 쓸 수 있어요. 연결 방법 보기

  • 미확인
  • 기본 브랜치main
  • 커밋91d1953
  • 라이선스Apache-2.0
  • 검색단어
GitHub에서 보기

dev-local

One-command local dev stack for tools-registry. Use when asked to "start the dev server", "run treg locally", "test login locally", "bring the stack up", or before any manual/browser test against localhost.

경로
.agents/skills/dev-local/SKILL.md
라이선스
Apache-2.0
internal
true

작성자를 위한 경고

  • Not listed or searched: a skill under a hidden directory is discoverable only when the repository has no visible skill.

dev-local — the local treg stack in one command

scripts/dev-local.sh runs the FastAPI server in a tmux session with dev-safe settings, and gives you a sandboxed CLI that never touches ~/.treg/config.json.

ServiceCommand (managed by the script)Port
treg serveruv run python -m treg --reload + TREG_EMAIL_DEV_MODE=true, own sqlite treg-dev.db18790
Dashboard Vitenpm run dev in frontend/, hot updates loaded by the Python entry5173

No infra deps (sqlite). Prerequisites: Node 22.12+, npm, tmux, uv (the script runs uv sync if .venv is missing).

Subcommands

scripts/dev-local.sh up          # start (idempotent) — prints URLs when healthy
scripts/dev-local.sh down        # stop the session
scripts/dev-local.sh status      # windows + port check
scripts/dev-local.sh logs        # last 200 lines of the server window
scripts/dev-local.sh restart     # respawn the server window
scripts/dev-local.sh attach      # attach to tmux
scripts/dev-local.sh cli <args>  # working-tree treg CLI, sandboxed HOME, pre-pointed at localhost
scripts/dev-local.sh reset       # down + wipe treg-dev.db and the CLI sandbox

cli is the key trick for login testing: scripts/dev-local.sh cli login runs the repo's CLI against localhost with HOME=scripts/.dev-home, so the real ~/.treg/config.json (usually pointing at production) is never overwritten. Email OTP dev mode is on — codes appear in the login page / API response, no mail sender needed.

TREG_DEV_DB=/absolute/path/to/dev.db selects a separate database without resetting the default.

For a LAN preview, build with bash scripts/build-dashboard.sh, then use TREG_FRONTEND_DEV=false scripts/dev-local.sh restart (or up if stopped). This serves compiled assets on port 18790; the default hot-update mode requires a browser on the same machine.

Troubleshooting

  • Port 18790 in use, no session → something else owns it: lsof -i :18790.
  • Server window died → scripts/dev-local.sh logs for the traceback, then restart.
  • Stale dev state / want a fresh DB → scripts/dev-local.sh reset then up.

이 스킬의 파일

이 스킬에는 보조 파일이 없습니다.

지원 파일 전체 둘러보기