mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
resolveProjectRoot only stripped a 'dist' suffix from the caller's module directory, so when the daemon sidecar is started by tools-dev (which runs apps/daemon/src/server.ts directly through tsx) the computed PROJECT_ROOT pointed at apps/ instead of the repo root. That made SKILLS_DIR, DESIGN_SYSTEMS_DIR, STATIC_DIR and the default RUNTIME_DATA_DIR all resolve to non-existent paths, so /api/skills returned an empty list and the web "examples" page reported "No skills available. Is the daemon running?". Treat 'src' the same as 'dist' so resolution works for both the tsx source entry and the compiled build, and add a regression test for the src case alongside the existing dist/daemon-root cases.