Tool running (toolkit + web_ui)
Repo root
Let R = the apps_publisher repository root.
Ports and commands (source of truth)
- Dev server:
web_uiViteserver.portinR/web_ui/vite.config.ts(currently 4713). If that file changes, update this skill’s port references. - Probe URL:
http://127.0.0.1:<port>/— treat HTTP success (any non-connection error counts as “something is listening”; prefer 200 if you usecurl -f). - Start UI: From
R/web_ui:npm run dev(long-running → run in background in Claude Code).
Workflow (strict order)
cdtoRfor all relative paths.- Python toolchain
- Require
python3(orpythonon Windows if present and callable as Python 3). If absent, install per OS (macOS often Homebrewbrew install python) then continue. - Toolkit deps: Prefer an isolated env:
- Create
R/toolkit/.venvif missing:python3 -m venv toolkit/.venv - Install:
toolkit/.venv/bin/pip install -r toolkit/requirements.txt(Windows:toolkit\.venv\Scripts\pip).
- Create
- Quick sanity optional:
toolkit/.venv/bin/pip show pydanticandtoolkit/.venv/bin/pip show pillow(packages fromrequirements.txt). Do not usepython -c(repo policy blocks it for design agents).
- Require
- Node toolchain
- Require
nodeandnpm. If missing, install Node LTS (e.g. https://nodejs.org/ orbrew install nodeon macOS). - In
R/web_ui: ifnode_modulesis missing or user asked for a clean reinstall, install deps:- If
package-lock.jsonexists →npm ci - Else →
npm install(current repo layout).
- If
- Require
- Is web_ui already running?
- Probe
http://127.0.0.1:4713/(or currentserver.portfrom vite.config.ts if you re-read it). - If the probe succeeds, do not start a second dev server unless the user asked to restart.
- Probe
- Start dev server only if probe failed
- From
R/web_uirunnpm run devin the background. serverin vite.config.ts does not setstrictPort; if 4713 is taken, Vite may pick another port. After start, confirm theLocal:URL from the dev-server terminal output, or probe the port printed there—not only 4713.- Re-probe until the URL responds or surface stderr with a clear next step (missing module after install failure, etc.).
- From
- Done
- Tell the user the tool is ready when: toolkit venv deps are installed and the dev URL answers.
- Summarize briefly: what you installed or created venv/
node_modules, whether you started the server, absolute URL.
Constraints
- Do not edit
web_ui/src/**unless the user explicitly asks; repo Claude permissions may deny it anyway. - Prefer idempotent steps safe to rerun.
- If port 4713 is occupied by something that is not this Vite app, report PID / process hints (
lsof -i :4713on macOS) and avoid killing processes unless the user agrees.
Source: MeasnaLazi/apps_publisher — distributed by TomeVault.