run-wenlan

Solid

Build, launch, and stop the wenlan daemon (wenlan-server) for local dev and verification. Use when asked to run or restart the daemon, or before driving any surface (HTTP, CLI, MCP) against a live instance.

AI & Automation 47 stars 5 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 80/100

Stars 20%
56
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Run wenlan-server (dev) Build: `cargo build -p wenlan-server -p wenlan` (add `-p wenlan-mcp` for the MCP bridge). ## Isolated instance (default for verification) Never verify against the shared prod daemon on :7878 — dev and prod share the platform data dir by default. ```bash WENLAN_PORT=17878 WENLAN_DATA_DIR="$(mktemp -d "${TMPDIR:-/tmp}/run.XXXXXX")" \ ./target/debug/wenlan-server & # ready: curl -sf --max-time 2 http://127.0.0.1:17878/api/health (poll up to ~120s) # stop: lsof -ti :17878 | xargs kill -9 ``` Sandbox gotcha: always give mktemp a template (`"${TMPDIR:-/tmp}/x.XXXXXX"`); bare `mktemp -d` lands in a denied dir on macOS. ## Prod daemon (the user's real instance on :7878) Managed service: `wenlan background on` / `wenlan background off` / `wenlan restart` (launchd on macOS, systemd-user on Linux, schtasks on Windows). Other agents and the desktop app share it — never kill it casually. ## Lifecycle checklist - **Which binary owns :7878** — launchd, the main checkout, a stale worktree, or a previous session can all own it. `lsof -i :7878` for the PID, then `lsof -p <PID> | grep "txt.*wenlan-server"` for the binary path and size. Kill and restart from the current working tree when in doubt. - **Stale binary after merge/pull** — `cargo build -p wenlan-server` may report "Finished" without recompiling after a fast-forward (source timestamps unchanged). Force it: `touch crates/wenlan-server/src/router.rs && cargo build -p wenlan-server`, t...

Details

Author
7xuanlu
Repository
7xuanlu/wenlan
Created
3 months ago
Last Updated
today
Language
Rust
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category