Skip to main content

verify

How to launch and drive Diff Dad for runtime verification — daemon on a scratch port, config/test-connection API, and the single-PR server.

소스 정보

저장소
nicknisi/diffdad
최근 소스 활동
2026년 7월 7일 20:35
감지된 SKILL.md 언어
영어
스타
20
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
verify
description
How to launch and drive Diff Dad for runtime verification — daemon on a scratch port, config/test-connection API, and the single-PR server.
# Verifying Diff Dad changes at runtime ## Launch a server with the current source The daemon is the easiest surface — it registers the shared config routes and runs straight from source (no rebuild needed for CLI-side changes; frontend changes need `bun run build` first since the server serves `packages/web/dist`). ```sh # background it; --no-open suppresses the browser bun packages/cli/src/cli.ts daemon --port=45677 --no-open # readiness probe curl -s http://localhost:45677/api/config ``` Check nothing is already on the port first (`lsof -iTCP:45677 -sTCP:LISTEN`). Kill when done: `lsof -tiTCP:45677 -sTCP:LISTEN | xargs kill`. ## Useful endpoints - `GET /api/config` — redacted saved config (secrets become `*Set` booleans). - `POST /api/config/test` — what the settings page "Test connection" buttons call. Always returns 200 with `{ok, detail}`; candidate fields overlay the saved config, so an omitted `aiApiKey` uses the stored one: ```sh curl -s -X POST http://localhost:45677/api/config/test \ -H 'content-type: application/json' \ -d '{"kind":"ai","aiProvider":"anthropic","aiModel":"claude-sonnet-5"}' ``` `{"kind":"github"}` tests the effective GitHub token instead. - `PUT /api/config` — merge-patch save (broadcasts over SSE `config` event). ## Gotchas - `POST /api/config/test` with `kind: ai` makes ONE real API call against the user's stored key (16-token ping) — cheap, but it's live. - The AI test has a 15s timeout; the local-CLI path (`defaultCli`) is much slower than the API path and can hit it. - Config lives in the dataDir (see `getConfigPath()` in `packages/cli/src/config.ts`); the daemon reads it fresh per request, so config edits don't need a restart — but code edits do.
GitHub에서 보기