open-design/apps/daemon
ChildhoodAndy 009d7a5478
refactor(daemon): eliminate duplicate dist tree from two-tsconfig build (#553)
Move sidecar source under src/ so a single tsconfig produces all daemon
output. Removes the parallel dist/src/ tree that was emitted by
tsconfig.sidecar.json (it included src/**/*.ts to type-check the
`../src/server.js` cross-tree import).

Build now emits:
- dist/<flat>            (cli.js, server.js, app-version.js, ...)
- dist/sidecar/{index,server}.js

`dist/sidecar/server.js` reaches the main daemon via `../server.js`
instead of `../src/server.js`, so there is no second copy of the source
tree in the published tarball.

Background — issue #534 (already fixed by #537):
The packaged Settings → About panel showed 0.0.0 because the sidecar
chain loaded the duplicated `dist/src/app-version.js`, where the fixed
`new URL('../package.json', import.meta.url)` resolved to a non-existent
`dist/package.json`. #537 patched the symptom by walking parents until a
real `package.json` is found and by writing `appVersion` into the Linux
packaged config. Both stay in place — they're sound defenses — but the
underlying duplicate-emit was never addressed; any future relative
resource lookup (templates, schemas, prompts) anchored on
`import.meta.url` would have hit the same trap.

This change removes the trap.
2026-05-05 23:31:14 +08:00
..
src refactor(daemon): eliminate duplicate dist tree from two-tsconfig build (#553) 2026-05-05 23:31:14 +08:00
tests feat(web): add skills & design systems management page in settings (#535) 2026-05-05 22:50:25 +08:00
package.json refactor(daemon): eliminate duplicate dist tree from two-tsconfig build (#553) 2026-05-05 23:31:14 +08:00
tsconfig.json Refresh desktop integration control plane (#123) 2026-04-30 14:23:53 +08:00
tsconfig.tests.json Refresh desktop integration control plane (#123) 2026-04-30 14:23:53 +08:00
vitest.config.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00